Fix leak in BigInt unary plus (saghul)

This commit is contained in:
Fabrice Bellard 2025-04-07 12:00:08 +02:00
parent ec83bd2098
commit fa706d5622

View File

@ -13397,6 +13397,7 @@ static no_inline __exception int js_unary_arith_slow(JSContext *ctx,
switch(op) {
case OP_plus:
JS_ThrowTypeError(ctx, "bigint argument with unary +");
JS_FreeValue(ctx, op1);
goto exception;
case OP_inc:
case OP_dec: