greybel-interpreter 1.3.8 → 1.3.9

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.
@@ -313,6 +313,12 @@ var handleFunction = function (op, a, b) {
313
313
  };
314
314
  exports.handleFunction = handleFunction;
315
315
  var handle = function (op, a, b) {
316
+ if (op === greyscript_core_1.Operator.Equal && a.getCustomType() !== b.getCustomType()) {
317
+ return default_1.default.False;
318
+ }
319
+ else if (op === greyscript_core_1.Operator.NotEqual && a.getCustomType() !== b.getCustomType()) {
320
+ return default_1.default.True;
321
+ }
316
322
  if (a instanceof string_1.default || b instanceof string_1.default) {
317
323
  return (0, exports.handleString)(op, a, b);
318
324
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",