diff --git a/compat/src/arkts/ts-reflection.ts b/compat/src/arkts/ts-reflection.ts index 90744e2732f8734f9b853d618be61f6a2c8f2b8e..1adb8a57bf0a1b7c57503e5879435194bda4610c 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 {