From 0134098712f7d296a0dce9cf95d6de3ea06acd8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Thu, 9 May 2024 09:13:05 +0200 Subject: [PATCH] Add missing `JS_DupValue` calls --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.c b/quickjs.c index 7c862975e..834870670 100644 --- a/quickjs.c +++ b/quickjs.c @@ -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)