greybel-interpreter 4.8.0 → 4.8.2

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.
@@ -55,7 +55,8 @@ class ObjectValue {
55
55
  forEach(callback) {
56
56
  const values = Array.from(this.data.values());
57
57
  for (let index = 0; index < values.length; index++) {
58
- callback(...values[index], this);
58
+ const [key, value] = values[index];
59
+ callback(value, key, this);
59
60
  }
60
61
  }
61
62
  fork() {
@@ -68,9 +69,9 @@ class ObjectValue {
68
69
  return newObject;
69
70
  }
70
71
  extend(objVal) {
71
- const entries = Array.from(objVal.data);
72
+ const entries = Array.from(objVal.entries());
72
73
  for (let index = 0; index < entries.length; index++) {
73
- Map.prototype.set.apply(this.data, entries[index]);
74
+ ObjectValue.prototype.set.apply(this, entries[index]);
74
75
  }
75
76
  return this;
76
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "4.8.0",
3
+ "version": "4.8.2",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",