mol_wire_lib 1.0.473 → 1.0.475

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
@@ -937,10 +937,13 @@ var $;
937
937
  "use strict";
938
938
  var $;
939
939
  (function ($) {
940
+ const named = new WeakSet();
940
941
  function $mol_func_name(func) {
941
942
  let name = func.name;
942
943
  if (name?.length > 1)
943
944
  return name;
945
+ if (named.has(func))
946
+ return name;
944
947
  for (let key in this) {
945
948
  try {
946
949
  if (this[key] !== func)
@@ -951,6 +954,7 @@ var $;
951
954
  }
952
955
  catch { }
953
956
  }
957
+ named.add(func);
954
958
  return name;
955
959
  }
956
960
  $.$mol_func_name = $mol_func_name;