mol_view_tree2_lib 1.0.207 → 1.0.209
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 +3 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +3 -3
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -9777,10 +9777,10 @@ var $;
|
|
|
9777
9777
|
static wrap(task) {
|
|
9778
9778
|
const store = new WeakMap();
|
|
9779
9779
|
const fun = function (next) {
|
|
9780
|
-
if (next === undefined && store.has(this))
|
|
9781
|
-
return store.get(this);
|
|
9780
|
+
if (next === undefined && store.has(this ?? fun))
|
|
9781
|
+
return store.get(this ?? fun);
|
|
9782
9782
|
const val = task.call(this, next) ?? next;
|
|
9783
|
-
store.set(this, val);
|
|
9783
|
+
store.set(this ?? fun, val);
|
|
9784
9784
|
return val;
|
|
9785
9785
|
};
|
|
9786
9786
|
Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });
|