mol_wire_lib 1.0.745 → 1.0.747
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.js +2 -2
- package/node.js.map +1 -1
- package/node.mjs +2 -2
- package/node.test.js +281 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +2 -2
- package/web.js.map +1 -1
- package/web.mjs +2 -2
- package/web.test.js +279 -0
- package/web.test.js.map +1 -1
package/node.js
CHANGED
|
@@ -834,6 +834,8 @@ var $;
|
|
|
834
834
|
result = compare_pojo(left, right);
|
|
835
835
|
else if (!Reflect.getPrototypeOf(left_proto))
|
|
836
836
|
result = compare_pojo(left, right);
|
|
837
|
+
else if (Symbol.toPrimitive in left)
|
|
838
|
+
result = compare_primitive(left, right);
|
|
837
839
|
else if (Array.isArray(left))
|
|
838
840
|
result = compare_array(left, right);
|
|
839
841
|
else if (left instanceof Set)
|
|
@@ -844,8 +846,6 @@ var $;
|
|
|
844
846
|
result = compare_buffer(left, right);
|
|
845
847
|
else if (Symbol.iterator in left)
|
|
846
848
|
result = compare_iterator(left[Symbol.iterator](), right[Symbol.iterator]());
|
|
847
|
-
else if (Symbol.toPrimitive in left)
|
|
848
|
-
result = compare_primitive(left, right);
|
|
849
849
|
else
|
|
850
850
|
result = false;
|
|
851
851
|
}
|