mol_plot_all 1.2.868 → 1.2.870

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 CHANGED
@@ -400,8 +400,6 @@ var $;
400
400
  function $mol_dev_format_native(obj) {
401
401
  if (typeof obj === 'undefined')
402
402
  return $.$mol_dev_format_shade('undefined');
403
- if (typeof obj !== 'object' && typeof obj !== 'function')
404
- return obj;
405
403
  return [
406
404
  'object',
407
405
  {
@@ -1019,11 +1017,11 @@ var $;
1019
1017
  return true;
1020
1018
  }
1021
1019
  function compare_buffer(left, right) {
1022
- if (left instanceof DataView)
1023
- return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
1024
1020
  const len = left.byteLength;
1025
1021
  if (len !== right.byteLength)
1026
1022
  return false;
1023
+ if (left instanceof DataView)
1024
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
1027
1025
  for (let i = 0; i < len; ++i) {
1028
1026
  if (left[i] !== right[i])
1029
1027
  return false;