mol_plot_all 1.2.502 → 1.2.503

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 CHANGED
@@ -1521,10 +1521,13 @@ var $;
1521
1521
  "use strict";
1522
1522
  var $;
1523
1523
  (function ($) {
1524
+ const named = new WeakSet();
1524
1525
  function $mol_func_name(func) {
1525
1526
  let name = func.name;
1526
1527
  if (name?.length > 1)
1527
1528
  return name;
1529
+ if (named.has(func))
1530
+ return name;
1528
1531
  for (let key in this) {
1529
1532
  try {
1530
1533
  if (this[key] !== func)
@@ -1535,6 +1538,7 @@ var $;
1535
1538
  }
1536
1539
  catch { }
1537
1540
  }
1541
+ named.add(func);
1538
1542
  return name;
1539
1543
  }
1540
1544
  $.$mol_func_name = $mol_func_name;