mol_time_all 1.1.298 → 1.1.301
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
|
@@ -1320,8 +1320,9 @@ var $;
|
|
|
1320
1320
|
'Map'() {
|
|
1321
1321
|
$mol_assert_ok($mol_compare_deep(new Map, new Map));
|
|
1322
1322
|
$mol_assert_ok($mol_compare_deep(new Map([[1, [2]]]), new Map([[1, [2]]])));
|
|
1323
|
+
$mol_assert_ok($mol_compare_deep(new Map([[[1], 2]]), new Map([[[1], 2]])));
|
|
1323
1324
|
$mol_assert_not($mol_compare_deep(new Map([[1, 2]]), new Map([[1, 3]])));
|
|
1324
|
-
$mol_assert_not($mol_compare_deep(new Map([[[1], 2]]), new Map([[[
|
|
1325
|
+
$mol_assert_not($mol_compare_deep(new Map([[[1], 2]]), new Map([[[3], 2]])));
|
|
1325
1326
|
},
|
|
1326
1327
|
'Set'() {
|
|
1327
1328
|
$mol_assert_ok($mol_compare_deep(new Set, new Set));
|
|
@@ -1436,7 +1437,7 @@ var $;
|
|
|
1436
1437
|
}
|
|
1437
1438
|
return true;
|
|
1438
1439
|
}
|
|
1439
|
-
function compare_iterator(left, right
|
|
1440
|
+
function compare_iterator(left, right) {
|
|
1440
1441
|
while (true) {
|
|
1441
1442
|
const left_next = left.next();
|
|
1442
1443
|
const right_next = right.next();
|
|
@@ -1444,7 +1445,7 @@ var $;
|
|
|
1444
1445
|
return false;
|
|
1445
1446
|
if (left_next.done)
|
|
1446
1447
|
break;
|
|
1447
|
-
if (
|
|
1448
|
+
if (!$mol_compare_deep(left_next.value, right_next.value))
|
|
1448
1449
|
return false;
|
|
1449
1450
|
}
|
|
1450
1451
|
return true;
|
|
@@ -1452,13 +1453,13 @@ var $;
|
|
|
1452
1453
|
function compare_set(left, right) {
|
|
1453
1454
|
if (left.size !== right.size)
|
|
1454
1455
|
return false;
|
|
1455
|
-
return compare_iterator(left.values(), right.values()
|
|
1456
|
+
return compare_iterator(left.values(), right.values());
|
|
1456
1457
|
}
|
|
1457
1458
|
function compare_map(left, right) {
|
|
1458
1459
|
if (left.size !== right.size)
|
|
1459
1460
|
return false;
|
|
1460
|
-
return compare_iterator(left.keys(), right.keys()
|
|
1461
|
-
&& compare_iterator(left.values(), right.values()
|
|
1461
|
+
return compare_iterator(left.keys(), right.keys())
|
|
1462
|
+
&& compare_iterator(left.values(), right.values());
|
|
1462
1463
|
}
|
|
1463
1464
|
function compare_pojo(left, right) {
|
|
1464
1465
|
const left_keys = Object.getOwnPropertyNames(left);
|