mol_wire_lib 1.0.182 → 1.0.185

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
@@ -782,6 +782,8 @@ var $;
782
782
  return Object.is(left.valueOf(), right['valueOf']());
783
783
  if (left instanceof RegExp)
784
784
  return left.source === right['source'] && left.flags === right['flags'];
785
+ if (left instanceof Error)
786
+ return left.stack === right['stack'];
785
787
  let left_cache = $.$mol_compare_deep_cache.get(left);
786
788
  if (left_cache) {
787
789
  const right_cache = left_cache.get(right);
@@ -802,8 +804,6 @@ var $;
802
804
  result = compare_set(left, right);
803
805
  else if (left instanceof Map)
804
806
  result = compare_map(left, right);
805
- else if (left instanceof Error)
806
- result = left.stack === right.stack;
807
807
  else if (ArrayBuffer.isView(left))
808
808
  result = compare_buffer(left, right);
809
809
  else if (Symbol.toPrimitive in left)
@@ -900,8 +900,7 @@ var $;
900
900
  };
901
901
  }
902
902
  complete() {
903
- if (this.sub_empty)
904
- this.destructor();
903
+ this.destructor();
905
904
  }
906
905
  put(next) {
907
906
  const prev = this.cache;