mol_tree2 1.0.13 → 1.0.16
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 +7 -6
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +7 -6
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -1948,8 +1948,9 @@ var $;
|
|
|
1948
1948
|
'Map'() {
|
|
1949
1949
|
$mol_assert_ok($mol_compare_deep(new Map, new Map));
|
|
1950
1950
|
$mol_assert_ok($mol_compare_deep(new Map([[1, [2]]]), new Map([[1, [2]]])));
|
|
1951
|
+
$mol_assert_ok($mol_compare_deep(new Map([[[1], 2]]), new Map([[[1], 2]])));
|
|
1951
1952
|
$mol_assert_not($mol_compare_deep(new Map([[1, 2]]), new Map([[1, 3]])));
|
|
1952
|
-
$mol_assert_not($mol_compare_deep(new Map([[[1], 2]]), new Map([[[
|
|
1953
|
+
$mol_assert_not($mol_compare_deep(new Map([[[1], 2]]), new Map([[[3], 2]])));
|
|
1953
1954
|
},
|
|
1954
1955
|
'Set'() {
|
|
1955
1956
|
$mol_assert_ok($mol_compare_deep(new Set, new Set));
|
|
@@ -2064,7 +2065,7 @@ var $;
|
|
|
2064
2065
|
}
|
|
2065
2066
|
return true;
|
|
2066
2067
|
}
|
|
2067
|
-
function compare_iterator(left, right
|
|
2068
|
+
function compare_iterator(left, right) {
|
|
2068
2069
|
while (true) {
|
|
2069
2070
|
const left_next = left.next();
|
|
2070
2071
|
const right_next = right.next();
|
|
@@ -2072,7 +2073,7 @@ var $;
|
|
|
2072
2073
|
return false;
|
|
2073
2074
|
if (left_next.done)
|
|
2074
2075
|
break;
|
|
2075
|
-
if (
|
|
2076
|
+
if (!$mol_compare_deep(left_next.value, right_next.value))
|
|
2076
2077
|
return false;
|
|
2077
2078
|
}
|
|
2078
2079
|
return true;
|
|
@@ -2080,13 +2081,13 @@ var $;
|
|
|
2080
2081
|
function compare_set(left, right) {
|
|
2081
2082
|
if (left.size !== right.size)
|
|
2082
2083
|
return false;
|
|
2083
|
-
return compare_iterator(left.values(), right.values()
|
|
2084
|
+
return compare_iterator(left.values(), right.values());
|
|
2084
2085
|
}
|
|
2085
2086
|
function compare_map(left, right) {
|
|
2086
2087
|
if (left.size !== right.size)
|
|
2087
2088
|
return false;
|
|
2088
|
-
return compare_iterator(left.keys(), right.keys()
|
|
2089
|
-
&& compare_iterator(left.values(), right.values()
|
|
2089
|
+
return compare_iterator(left.keys(), right.keys())
|
|
2090
|
+
&& compare_iterator(left.values(), right.values());
|
|
2090
2091
|
}
|
|
2091
2092
|
function compare_pojo(left, right) {
|
|
2092
2093
|
const left_keys = Object.getOwnPropertyNames(left);
|