mol_data_all 1.1.596 → 1.1.598

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
@@ -1441,10 +1441,13 @@ var $;
1441
1441
  "use strict";
1442
1442
  var $;
1443
1443
  (function ($) {
1444
+ const named = new WeakSet();
1444
1445
  function $mol_func_name(func) {
1445
1446
  let name = func.name;
1446
1447
  if (name?.length > 1)
1447
1448
  return name;
1449
+ if (named.has(func))
1450
+ return name;
1448
1451
  for (let key in this) {
1449
1452
  try {
1450
1453
  if (this[key] !== func)
@@ -1455,6 +1458,7 @@ var $;
1455
1458
  }
1456
1459
  catch { }
1457
1460
  }
1461
+ named.add(func);
1458
1462
  return name;
1459
1463
  }
1460
1464
  $.$mol_func_name = $mol_func_name;