mol_data_all 1.1.347 → 1.1.350

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
@@ -1068,6 +1068,8 @@ var $;
1068
1068
  return Object.is(left.valueOf(), right['valueOf']());
1069
1069
  if (left instanceof RegExp)
1070
1070
  return left.source === right['source'] && left.flags === right['flags'];
1071
+ if (left instanceof Error)
1072
+ return left.stack === right['stack'];
1071
1073
  let left_cache = $.$mol_compare_deep_cache.get(left);
1072
1074
  if (left_cache) {
1073
1075
  const right_cache = left_cache.get(right);
@@ -1088,8 +1090,6 @@ var $;
1088
1090
  result = compare_set(left, right);
1089
1091
  else if (left instanceof Map)
1090
1092
  result = compare_map(left, right);
1091
- else if (left instanceof Error)
1092
- result = left.stack === right.stack;
1093
1093
  else if (ArrayBuffer.isView(left))
1094
1094
  result = compare_buffer(left, right);
1095
1095
  else if (Symbol.toPrimitive in left)