mol_jsx_lib 0.0.147 → 0.0.148

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
@@ -1651,7 +1651,7 @@ var $;
1651
1651
  }
1652
1652
  return true;
1653
1653
  }
1654
- function compare_iterator(left, right, compare) {
1654
+ function compare_iterator(left, right) {
1655
1655
  while (true) {
1656
1656
  const left_next = left.next();
1657
1657
  const right_next = right.next();
@@ -1659,7 +1659,7 @@ var $;
1659
1659
  return false;
1660
1660
  if (left_next.done)
1661
1661
  break;
1662
- if (!compare(left_next.value, right_next.value))
1662
+ if (!$mol_compare_deep(left_next.value, right_next.value))
1663
1663
  return false;
1664
1664
  }
1665
1665
  return true;
@@ -1667,13 +1667,13 @@ var $;
1667
1667
  function compare_set(left, right) {
1668
1668
  if (left.size !== right.size)
1669
1669
  return false;
1670
- return compare_iterator(left.values(), right.values(), $mol_compare_deep);
1670
+ return compare_iterator(left.values(), right.values());
1671
1671
  }
1672
1672
  function compare_map(left, right) {
1673
1673
  if (left.size !== right.size)
1674
1674
  return false;
1675
- return compare_iterator(left.keys(), right.keys(), Object.is)
1676
- && compare_iterator(left.values(), right.values(), $mol_compare_deep);
1675
+ return compare_iterator(left.keys(), right.keys())
1676
+ && compare_iterator(left.values(), right.values());
1677
1677
  }
1678
1678
  function compare_pojo(left, right) {
1679
1679
  const left_keys = Object.getOwnPropertyNames(left);
@@ -3268,8 +3268,9 @@ var $;
3268
3268
  'Map'() {
3269
3269
  $mol_assert_ok($mol_compare_deep(new Map, new Map));
3270
3270
  $mol_assert_ok($mol_compare_deep(new Map([[1, [2]]]), new Map([[1, [2]]])));
3271
+ $mol_assert_ok($mol_compare_deep(new Map([[[1], 2]]), new Map([[[1], 2]])));
3271
3272
  $mol_assert_not($mol_compare_deep(new Map([[1, 2]]), new Map([[1, 3]])));
3272
- $mol_assert_not($mol_compare_deep(new Map([[[1], 2]]), new Map([[[1], 2]])));
3273
+ $mol_assert_not($mol_compare_deep(new Map([[[1], 2]]), new Map([[[3], 2]])));
3273
3274
  },
3274
3275
  'Set'() {
3275
3276
  $mol_assert_ok($mol_compare_deep(new Set, new Set));