mol_regexp 0.0.652 → 0.0.653

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
@@ -1909,10 +1909,13 @@ var $;
1909
1909
  "use strict";
1910
1910
  var $;
1911
1911
  (function ($) {
1912
+ const named = new WeakSet();
1912
1913
  function $mol_func_name(func) {
1913
1914
  let name = func.name;
1914
1915
  if (name?.length > 1)
1915
1916
  return name;
1917
+ if (named.has(func))
1918
+ return name;
1916
1919
  for (let key in this) {
1917
1920
  try {
1918
1921
  if (this[key] !== func)
@@ -1923,6 +1926,7 @@ var $;
1923
1926
  }
1924
1927
  catch { }
1925
1928
  }
1929
+ named.add(func);
1926
1930
  return name;
1927
1931
  }
1928
1932
  $.$mol_func_name = $mol_func_name;