mol_tree2 1.0.190 → 1.0.191

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
@@ -2851,10 +2851,13 @@ var $;
2851
2851
  "use strict";
2852
2852
  var $;
2853
2853
  (function ($) {
2854
+ const named = new WeakSet();
2854
2855
  function $mol_func_name(func) {
2855
2856
  let name = func.name;
2856
2857
  if (name?.length > 1)
2857
2858
  return name;
2859
+ if (named.has(func))
2860
+ return name;
2858
2861
  for (let key in this) {
2859
2862
  try {
2860
2863
  if (this[key] !== func)
@@ -2865,6 +2868,7 @@ var $;
2865
2868
  }
2866
2869
  catch { }
2867
2870
  }
2871
+ named.add(func);
2868
2872
  return name;
2869
2873
  }
2870
2874
  $.$mol_func_name = $mol_func_name;