mirror of
https://github.com/bellard/quickjs.git
synced 2025-11-15 18:22:15 +03:00
Fix leak in BigInt unary plus (saghul)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user