mirror of
https://github.com/bellard/quickjs.git
synced 2026-03-31 12:18:01 +00: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) {
|
||||
case OP_plus:
|
||||
JS_ThrowTypeError(ctx, "bigint argument with unary +");
|
||||
JS_FreeValue(ctx, op1);
|
||||
goto exception;
|
||||
case OP_inc:
|
||||
case OP_dec:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user