@@ -14234,7 +14234,7 @@ static no_inline __exception int js_eq_slow(JSContext *ctx, JSValue *sp,
14234
14234
goto exception;
14235
14235
}
14236
14236
}
14237
- res = js_strict_eq (ctx, op1, op2);
14237
+ res = js_strict_eq2 (ctx, op1, op2, JS_EQ_STRICT );
14238
14238
} else if (tag1 == JS_TAG_BOOL) {
14239
14239
op1 = JS_NewInt32(ctx, JS_VALUE_GET_INT(op1));
14240
14240
goto redo;
@@ -14552,14 +14552,16 @@ static BOOL js_strict_eq2(JSContext *ctx, JSValue op1, JSValue op2,
14552
14552
return res;
14553
14553
}
14554
14554
14555
- static BOOL js_strict_eq(JSContext *ctx, JSValue op1, JSValue op2)
14555
+ static BOOL js_strict_eq(JSContext *ctx, JSValueConst op1, JSValueConst op2)
14556
14556
{
14557
- return js_strict_eq2(ctx, op1, op2, JS_EQ_STRICT);
14557
+ return js_strict_eq2(ctx,
14558
+ JS_DupValue(ctx, op1), JS_DupValue(ctx, op2),
14559
+ JS_EQ_STRICT);
14558
14560
}
14559
14561
14560
14562
BOOL JS_StrictEq(JSContext *ctx, JSValueConst op1, JSValueConst op2)
14561
14563
{
14562
- return js_strict_eq(ctx, JS_DupValue(ctx, op1), JS_DupValue(ctx, op2) );
14564
+ return js_strict_eq(ctx, op1, op2);
14563
14565
}
14564
14566
14565
14567
static BOOL js_same_value(JSContext *ctx, JSValueConst op1, JSValueConst op2)
@@ -14590,7 +14592,7 @@ static no_inline int js_strict_eq_slow(JSContext *ctx, JSValue *sp,
14590
14592
BOOL is_neq)
14591
14593
{
14592
14594
BOOL res;
14593
- res = js_strict_eq (ctx, sp[-2], sp[-1]);
14595
+ res = js_strict_eq2 (ctx, sp[-2], sp[-1], JS_EQ_STRICT );
14594
14596
sp[-2] = JS_NewBool(ctx, res ^ is_neq);
14595
14597
return 0;
14596
14598
}
0 commit comments