mirror of
https://github.com/bellard/quickjs.git
synced 2025-05-15 10:45:02 +08:00
Fix leak in BigInt unary plus (saghul)
This commit is contained in:
parent
ec83bd2098
commit
fa706d5622
@ -13397,6 +13397,7 @@ static no_inline __exception int js_unary_arith_slow(JSContext *ctx,
|
|||||||
switch(op) {
|
switch(op) {
|
||||||
case OP_plus:
|
case OP_plus:
|
||||||
JS_ThrowTypeError(ctx, "bigint argument with unary +");
|
JS_ThrowTypeError(ctx, "bigint argument with unary +");
|
||||||
|
JS_FreeValue(ctx, op1);
|
||||||
goto exception;
|
goto exception;
|
||||||
case OP_inc:
|
case OP_inc:
|
||||||
case OP_dec:
|
case OP_dec:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user