mol_time_all 1.1.477 → 1.1.479
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 +4 -0
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +4 -0
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -2263,10 +2263,13 @@ var $;
|
|
|
2263
2263
|
"use strict";
|
|
2264
2264
|
var $;
|
|
2265
2265
|
(function ($) {
|
|
2266
|
+
const named = new WeakSet();
|
|
2266
2267
|
function $mol_func_name(func) {
|
|
2267
2268
|
let name = func.name;
|
|
2268
2269
|
if (name?.length > 1)
|
|
2269
2270
|
return name;
|
|
2271
|
+
if (named.has(func))
|
|
2272
|
+
return name;
|
|
2270
2273
|
for (let key in this) {
|
|
2271
2274
|
try {
|
|
2272
2275
|
if (this[key] !== func)
|
|
@@ -2277,6 +2280,7 @@ var $;
|
|
|
2277
2280
|
}
|
|
2278
2281
|
catch { }
|
|
2279
2282
|
}
|
|
2283
|
+
named.add(func);
|
|
2280
2284
|
return name;
|
|
2281
2285
|
}
|
|
2282
2286
|
$.$mol_func_name = $mol_func_name;
|