mam 1.11.932 → 1.11.934

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
@@ -13152,10 +13152,10 @@ var $;
13152
13152
  static wrap(task) {
13153
13153
  const store = new WeakMap();
13154
13154
  const fun = function (next) {
13155
- if (next === undefined && store.has(this))
13156
- return store.get(this);
13155
+ if (next === undefined && store.has(this ?? fun))
13156
+ return store.get(this ?? fun);
13157
13157
  const val = task.call(this, next) ?? next;
13158
- store.set(this, val);
13158
+ store.set(this ?? fun, val);
13159
13159
  return val;
13160
13160
  };
13161
13161
  Reflect.defineProperty(fun, 'name', { value: task.name + ' ' });