mol_plot_all 1.2.548 → 1.2.550

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.mjs CHANGED
@@ -923,7 +923,9 @@ var $;
923
923
  }
924
924
  let result;
925
925
  try {
926
- if (left_proto && !Reflect.getPrototypeOf(left_proto))
926
+ if (!left_proto)
927
+ result = compare_pojo(left, right);
928
+ else if (!Reflect.getPrototypeOf(left_proto))
927
929
  result = compare_pojo(left, right);
928
930
  else if (Array.isArray(left))
929
931
  result = compare_array(left, right);
@@ -991,10 +993,18 @@ var $;
991
993
  function compare_pojo(left, right) {
992
994
  const left_keys = Object.getOwnPropertyNames(left);
993
995
  const right_keys = Object.getOwnPropertyNames(right);
994
- if (left_keys.length !== right_keys.length)
996
+ if (!compare_array(left_keys, right_keys))
995
997
  return false;
996
998
  for (let key of left_keys) {
997
- if (!$mol_compare_deep(left[key], Reflect.get(right, key)))
999
+ if (!$mol_compare_deep(left[key], right[key]))
1000
+ return false;
1001
+ }
1002
+ const left_syms = Object.getOwnPropertySymbols(left);
1003
+ const right_syms = Object.getOwnPropertySymbols(right);
1004
+ if (!compare_array(left_syms, right_syms))
1005
+ return false;
1006
+ for (let key of left_syms) {
1007
+ if (!$mol_compare_deep(left[key], right[key]))
998
1008
  return false;
999
1009
  }
1000
1010
  return true;