mol_wire_lib 1.0.867 → 1.0.869

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/web.mjs CHANGED
@@ -168,8 +168,6 @@ var $;
168
168
  function $mol_dev_format_native(obj) {
169
169
  if (typeof obj === 'undefined')
170
170
  return $.$mol_dev_format_shade('undefined');
171
- if (typeof obj !== 'object' && typeof obj !== 'function')
172
- return obj;
173
171
  return [
174
172
  'object',
175
173
  {
@@ -928,11 +926,11 @@ var $;
928
926
  return true;
929
927
  }
930
928
  function compare_buffer(left, right) {
931
- if (left instanceof DataView)
932
- return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
933
929
  const len = left.byteLength;
934
930
  if (len !== right.byteLength)
935
931
  return false;
932
+ if (left instanceof DataView)
933
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
936
934
  for (let i = 0; i < len; ++i) {
937
935
  if (left[i] !== right[i])
938
936
  return false;