Skip to content

Commit

Permalink
Add missing JS_DupValue calls
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed May 9, 2024
1 parent 6dd67c2 commit 0134098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -14559,7 +14559,7 @@ static BOOL js_strict_eq(JSContext *ctx, JSValue op1, JSValue op2)

BOOL JS_StrictEq(JSContext *ctx, JSValueConst op1, JSValueConst op2)
{
return js_strict_eq(ctx, op1, op2);
return js_strict_eq(ctx, JS_DupValue(ctx, op1), JS_DupValue(ctx, op2));
}

static BOOL js_same_value(JSContext *ctx, JSValueConst op1, JSValueConst op2)
Expand Down

0 comments on commit 0134098

Please sign in to comment.