mol_jsx_lib 0.0.676 → 0.0.677
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.deps.json +1 -1
- package/node.js +2 -0
- package/node.js.map +1 -1
- package/node.mjs +2 -0
- package/node.test.js +7 -0
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +2 -0
- package/web.js.map +1 -1
- package/web.mjs +2 -0
- package/web.test.js +5 -0
- package/web.test.js.map +1 -1
package/web.mjs
CHANGED
|
@@ -1195,6 +1195,8 @@ var $;
|
|
|
1195
1195
|
return true;
|
|
1196
1196
|
}
|
|
1197
1197
|
function compare_buffer(left, right) {
|
|
1198
|
+
if (left instanceof DataView)
|
|
1199
|
+
return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
|
|
1198
1200
|
const len = left.byteLength;
|
|
1199
1201
|
if (len !== right.byteLength)
|
|
1200
1202
|
return false;
|
package/web.test.js
CHANGED
|
@@ -1090,6 +1090,11 @@ var $;
|
|
|
1090
1090
|
$mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
|
|
1091
1091
|
$mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
|
|
1092
1092
|
},
|
|
1093
|
+
'DataView'() {
|
|
1094
|
+
$mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
|
|
1095
|
+
$mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
|
|
1096
|
+
$mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
|
|
1097
|
+
},
|
|
1093
1098
|
'Serializale'() {
|
|
1094
1099
|
class User {
|
|
1095
1100
|
name;
|