greybel-interpreter 2.6.3 → 2.6.4

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.
@@ -125,7 +125,7 @@ exports.ListProcessorHandler = {
125
125
  },
126
126
  [greyscript_core_1.Operator.Equal]: (left, right) => {
127
127
  if (right instanceof list_1.CustomList) {
128
- return new boolean_1.CustomBoolean(left.hash() === right.hash());
128
+ return new boolean_1.CustomBoolean(left === right || left.hash() === right.hash());
129
129
  }
130
130
  return default_1.DefaultType.Void;
131
131
  },
@@ -157,7 +157,7 @@ exports.MapProcessorHandler = {
157
157
  },
158
158
  [greyscript_core_1.Operator.Equal]: (left, right) => {
159
159
  if (right instanceof map_1.CustomMap) {
160
- return new boolean_1.CustomBoolean(left.hash() === right.hash());
160
+ return new boolean_1.CustomBoolean(left === right || left.hash() === right.hash());
161
161
  }
162
162
  return default_1.DefaultType.Void;
163
163
  },
@@ -17,7 +17,7 @@ const string_1 = require("../types/string");
17
17
  const set_immediate_1 = require("../utils/set-immediate");
18
18
  const block_1 = require("./block");
19
19
  const operation_1 = require("./operation");
20
- const FOR_BATCH_SIZE = 30;
20
+ const BATCH_SIZE = 5;
21
21
  class For extends operation_1.OperationBlock {
22
22
  constructor(item, target) {
23
23
  super(null, target);
@@ -72,7 +72,7 @@ class For extends operation_1.OperationBlock {
72
72
  const iteration = function () {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  try {
75
- for (let index = 0; index < FOR_BATCH_SIZE; index++) {
75
+ for (let index = 0; index < BATCH_SIZE; index++) {
76
76
  if (!(yield next())) {
77
77
  resolve(default_1.DefaultType.Void);
78
78
  return;
@@ -15,7 +15,7 @@ const default_1 = require("../types/default");
15
15
  const set_immediate_1 = require("../utils/set-immediate");
16
16
  const block_1 = require("./block");
17
17
  const operation_1 = require("./operation");
18
- const WHILE_BATCH_SIZE = 30;
18
+ const BATCH_SIZE = 5;
19
19
  class While extends operation_1.OperationBlock {
20
20
  constructor(item, target) {
21
21
  super(null, target);
@@ -57,7 +57,7 @@ class While extends operation_1.OperationBlock {
57
57
  const iteration = function () {
58
58
  return __awaiter(this, void 0, void 0, function* () {
59
59
  try {
60
- for (let index = 0; index < WHILE_BATCH_SIZE; index++) {
60
+ for (let index = 0; index < BATCH_SIZE; index++) {
61
61
  if (!(yield next())) {
62
62
  resolve(default_1.DefaultType.Void);
63
63
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",