From b2f4fc1341dd58fe40da73e890695aa73c4c79ba Mon Sep 17 00:00:00 2001 From: Auge <61627589+Auge19@users.noreply.github.com> Date: Wed, 4 Dec 2024 19:29:17 +0100 Subject: [PATCH] non sctrict operators compare sctrict The non-strict equality-comparer == and != are comparing strict. --- packages/utils.parser/src/operators.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/utils.parser/src/operators.ts b/packages/utils.parser/src/operators.ts index 4ab4b614..f618fe5b 100644 --- a/packages/utils.parser/src/operators.ts +++ b/packages/utils.parser/src/operators.ts @@ -42,8 +42,8 @@ const operators = { // TODO: 'in': function (a, b) { return a in b; }, // TODO: 'instanceof': function (a, b) { return a instanceof b; }, // equality - '==': function equal (a, b) { return a === b }, - '!=': function ne (a, b) { return a !== b }, + '==': function equal (a, b) { return a == b }, + '!=': function ne (a, b) { return a != b }, '===': function sequal (a, b) { return a === b }, '!==': function sne (a, b) { return a !== b }, // bitwise