mol_key 0.0.1368 → 0.0.1369

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
@@ -2385,10 +2385,12 @@ var $;
2385
2385
  result = wrappers.get(result);
2386
2386
  }
2387
2387
  else {
2388
- wrappers.set(result, result = Object.assign(result.finally(() => {
2388
+ const put = (v) => {
2389
2389
  if (this.cache === result)
2390
2390
  this.absorb();
2391
- }), { destructor: result.destructor || (() => { }) }));
2391
+ return v;
2392
+ };
2393
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
2392
2394
  const error = new Error(`Promise in ${this}`);
2393
2395
  Object.defineProperty(result, 'stack', { get: () => error.stack });
2394
2396
  }