greybel-interpreter 5.5.2 → 5.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vm/evaluation.js +2 -2
- package/package.json +1 -1
package/dist/vm/evaluation.js
CHANGED
|
@@ -271,7 +271,7 @@ function evalEqual(a, b) {
|
|
|
271
271
|
return new boolean_1.CustomBoolean((0, deep_equal_1.deepEqual)(a, b));
|
|
272
272
|
}
|
|
273
273
|
else if (a instanceof function_1.CustomFunction) {
|
|
274
|
-
return new boolean_1.CustomBoolean(a === b);
|
|
274
|
+
return new boolean_1.CustomBoolean(a.value === b.value);
|
|
275
275
|
}
|
|
276
276
|
else if (a instanceof nil_1.CustomNil) {
|
|
277
277
|
return new boolean_1.CustomBoolean(b instanceof nil_1.CustomNil);
|
|
@@ -293,7 +293,7 @@ function evalNotEqual(a, b) {
|
|
|
293
293
|
return new boolean_1.CustomBoolean(!(0, deep_equal_1.deepEqual)(a, b));
|
|
294
294
|
}
|
|
295
295
|
else if (a instanceof function_1.CustomFunction) {
|
|
296
|
-
return new boolean_1.CustomBoolean(a !== b);
|
|
296
|
+
return new boolean_1.CustomBoolean(a.value !== b.value);
|
|
297
297
|
}
|
|
298
298
|
else if (a instanceof nil_1.CustomNil) {
|
|
299
299
|
return new boolean_1.CustomBoolean(!(b instanceof nil_1.CustomNil));
|