mol_regexp 0.0.398 → 0.0.401

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
@@ -977,6 +977,8 @@ var $;
977
977
  return Object.is(left.valueOf(), right['valueOf']());
978
978
  if (left instanceof RegExp)
979
979
  return left.source === right['source'] && left.flags === right['flags'];
980
+ if (left instanceof Error)
981
+ return left.stack === right['stack'];
980
982
  let left_cache = $.$mol_compare_deep_cache.get(left);
981
983
  if (left_cache) {
982
984
  const right_cache = left_cache.get(right);
@@ -997,8 +999,6 @@ var $;
997
999
  result = compare_set(left, right);
998
1000
  else if (left instanceof Map)
999
1001
  result = compare_map(left, right);
1000
- else if (left instanceof Error)
1001
- result = left.stack === right.stack;
1002
1002
  else if (ArrayBuffer.isView(left))
1003
1003
  result = compare_buffer(left, right);
1004
1004
  else if (Symbol.toPrimitive in left)