mol_jsx_lib 0.0.45 → 0.0.46

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/node.test.js CHANGED
@@ -1519,6 +1519,8 @@ var $;
1519
1519
  return Object.is(left.valueOf(), right['valueOf']());
1520
1520
  if (left instanceof RegExp)
1521
1521
  return left.source === right['source'] && left.flags === right['flags'];
1522
+ if (left instanceof Error)
1523
+ return left.stack === right['stack'];
1522
1524
  let left_cache = $.$mol_compare_deep_cache.get(left);
1523
1525
  if (left_cache) {
1524
1526
  const right_cache = left_cache.get(right);
@@ -1539,8 +1541,6 @@ var $;
1539
1541
  result = compare_set(left, right);
1540
1542
  else if (left instanceof Map)
1541
1543
  result = compare_map(left, right);
1542
- else if (left instanceof Error)
1543
- result = left.stack === right.stack;
1544
1544
  else if (ArrayBuffer.isView(left))
1545
1545
  result = compare_buffer(left, right);
1546
1546
  else if (Symbol.toPrimitive in left)
@@ -1637,8 +1637,7 @@ var $;
1637
1637
  };
1638
1638
  }
1639
1639
  complete() {
1640
- if (this.sub_empty)
1641
- this.destructor();
1640
+ this.destructor();
1642
1641
  }
1643
1642
  put(next) {
1644
1643
  const prev = this.cache;