mol_time_all 1.1.588 → 1.1.590
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 +8 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +8 -1
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -1318,6 +1318,8 @@ var $;
|
|
|
1318
1318
|
result = compare_map(left, right);
|
|
1319
1319
|
else if (ArrayBuffer.isView(left))
|
|
1320
1320
|
result = compare_buffer(left, right);
|
|
1321
|
+
else if (Symbol.iterator in left)
|
|
1322
|
+
result = compare_iterator(left[Symbol.iterator](), right[Symbol.iterator]());
|
|
1321
1323
|
else if (Symbol.toPrimitive in left)
|
|
1322
1324
|
result = compare_primitive(left, right);
|
|
1323
1325
|
else
|
|
@@ -1481,7 +1483,7 @@ var $;
|
|
|
1481
1483
|
$mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
|
|
1482
1484
|
$mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
|
|
1483
1485
|
},
|
|
1484
|
-
'
|
|
1486
|
+
'Serializale'() {
|
|
1485
1487
|
class User {
|
|
1486
1488
|
name;
|
|
1487
1489
|
rand;
|
|
@@ -1496,6 +1498,11 @@ var $;
|
|
|
1496
1498
|
$mol_assert_ok($mol_compare_deep(new User('Jin'), new User('Jin')));
|
|
1497
1499
|
$mol_assert_not($mol_compare_deep(new User('Jin'), new User('John')));
|
|
1498
1500
|
},
|
|
1501
|
+
'Iterable'() {
|
|
1502
|
+
$mol_assert_ok($mol_compare_deep(new URLSearchParams({ foo: 'bar' }), new URLSearchParams({ foo: 'bar' })));
|
|
1503
|
+
$mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx' }), new URLSearchParams({ foo: 'yyy' })));
|
|
1504
|
+
$mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx', bar: 'yyy' }), new URLSearchParams({ bar: 'yyy', foo: 'xxx' })));
|
|
1505
|
+
},
|
|
1499
1506
|
});
|
|
1500
1507
|
})($ || ($ = {}));
|
|
1501
1508
|
//mol/compare/deep/deep.test.tsx
|