mol_time_all 1.1.224 → 1.1.225

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
@@ -1325,6 +1325,8 @@ var $;
1325
1325
  return Object.is(left.valueOf(), right['valueOf']());
1326
1326
  if (left instanceof RegExp)
1327
1327
  return left.source === right['source'] && left.flags === right['flags'];
1328
+ if (left instanceof Error)
1329
+ return left.stack === right['stack'];
1328
1330
  let left_cache = $.$mol_compare_deep_cache.get(left);
1329
1331
  if (left_cache) {
1330
1332
  const right_cache = left_cache.get(right);
@@ -1345,8 +1347,6 @@ var $;
1345
1347
  result = compare_set(left, right);
1346
1348
  else if (left instanceof Map)
1347
1349
  result = compare_map(left, right);
1348
- else if (left instanceof Error)
1349
- result = left.stack === right.stack;
1350
1350
  else if (ArrayBuffer.isView(left))
1351
1351
  result = compare_buffer(left, right);
1352
1352
  else if (Symbol.toPrimitive in left)