From 8f015bb4db2876c1ddc502457311d5d99d60c396 Mon Sep 17 00:00:00 2001 From: twx1232375 Date: Thu, 18 Sep 2025 14:30:44 +0300 Subject: [PATCH] added test strict equality comparison --- compat/src/arkts/ts-reflection.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compat/src/arkts/ts-reflection.ts b/compat/src/arkts/ts-reflection.ts index 90744e273..1adb8a57b 100644 --- a/compat/src/arkts/ts-reflection.ts +++ b/compat/src/arkts/ts-reflection.ts @@ -28,9 +28,8 @@ export function functionOverValue(value: Value | (() => Value)): boolean return Type.of(value) instanceof FunctionType; } -// Somehow es2panda only allows === on reference types. export function refEqual(a: Value, b: Value): boolean { - return a == b; + return a === b; } export function isNotPrimitive(value: Object): boolean { -- Gitee