mol_wire_lib 1.0.184 → 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.esm.js CHANGED
@@ -790,6 +790,8 @@ var $;
790
790
  return Object.is(left.valueOf(), right['valueOf']());
791
791
  if (left instanceof RegExp)
792
792
  return left.source === right['source'] && left.flags === right['flags'];
793
+ if (left instanceof Error)
794
+ return left.stack === right['stack'];
793
795
  let left_cache = $.$mol_compare_deep_cache.get(left);
794
796
  if (left_cache) {
795
797
  const right_cache = left_cache.get(right);
@@ -810,8 +812,6 @@ var $;
810
812
  result = compare_set(left, right);
811
813
  else if (left instanceof Map)
812
814
  result = compare_map(left, right);
813
- else if (left instanceof Error)
814
- result = left.stack === right.stack;
815
815
  else if (ArrayBuffer.isView(left))
816
816
  result = compare_buffer(left, right);
817
817
  else if (Symbol.toPrimitive in left)