mol_data_all 1.1.427 → 1.1.428
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
|
@@ -1063,8 +1063,9 @@ var $;
|
|
|
1063
1063
|
'Map'() {
|
|
1064
1064
|
$mol_assert_ok($mol_compare_deep(new Map, new Map));
|
|
1065
1065
|
$mol_assert_ok($mol_compare_deep(new Map([[1, [2]]]), new Map([[1, [2]]])));
|
|
1066
|
+
$mol_assert_ok($mol_compare_deep(new Map([[[1], 2]]), new Map([[[1], 2]])));
|
|
1066
1067
|
$mol_assert_not($mol_compare_deep(new Map([[1, 2]]), new Map([[1, 3]])));
|
|
1067
|
-
$mol_assert_not($mol_compare_deep(new Map([[[1], 2]]), new Map([[[
|
|
1068
|
+
$mol_assert_not($mol_compare_deep(new Map([[[1], 2]]), new Map([[[3], 2]])));
|
|
1068
1069
|
},
|
|
1069
1070
|
'Set'() {
|
|
1070
1071
|
$mol_assert_ok($mol_compare_deep(new Set, new Set));
|
|
@@ -1179,7 +1180,7 @@ var $;
|
|
|
1179
1180
|
}
|
|
1180
1181
|
return true;
|
|
1181
1182
|
}
|
|
1182
|
-
function compare_iterator(left, right
|
|
1183
|
+
function compare_iterator(left, right) {
|
|
1183
1184
|
while (true) {
|
|
1184
1185
|
const left_next = left.next();
|
|
1185
1186
|
const right_next = right.next();
|
|
@@ -1187,7 +1188,7 @@ var $;
|
|
|
1187
1188
|
return false;
|
|
1188
1189
|
if (left_next.done)
|
|
1189
1190
|
break;
|
|
1190
|
-
if (
|
|
1191
|
+
if (!$mol_compare_deep(left_next.value, right_next.value))
|
|
1191
1192
|
return false;
|
|
1192
1193
|
}
|
|
1193
1194
|
return true;
|
|
@@ -1195,13 +1196,13 @@ var $;
|
|
|
1195
1196
|
function compare_set(left, right) {
|
|
1196
1197
|
if (left.size !== right.size)
|
|
1197
1198
|
return false;
|
|
1198
|
-
return compare_iterator(left.values(), right.values()
|
|
1199
|
+
return compare_iterator(left.values(), right.values());
|
|
1199
1200
|
}
|
|
1200
1201
|
function compare_map(left, right) {
|
|
1201
1202
|
if (left.size !== right.size)
|
|
1202
1203
|
return false;
|
|
1203
|
-
return compare_iterator(left.keys(), right.keys()
|
|
1204
|
-
&& compare_iterator(left.values(), right.values()
|
|
1204
|
+
return compare_iterator(left.keys(), right.keys())
|
|
1205
|
+
&& compare_iterator(left.values(), right.values());
|
|
1205
1206
|
}
|
|
1206
1207
|
function compare_pojo(left, right) {
|
|
1207
1208
|
const left_keys = Object.getOwnPropertyNames(left);
|