mol_mutable 0.0.1027 → 0.0.1029

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
@@ -1370,10 +1370,12 @@ var $;
1370
1370
  result = wrappers.get(result);
1371
1371
  }
1372
1372
  else {
1373
- wrappers.set(result, result = Object.assign(result.finally(() => {
1373
+ const put = (v) => {
1374
1374
  if (this.cache === result)
1375
1375
  this.absorb();
1376
- }), { destructor: result.destructor || (() => { }) }));
1376
+ return v;
1377
+ };
1378
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
1377
1379
  const error = new Error(`Promise in ${this}`);
1378
1380
  Object.defineProperty(result, 'stack', { get: () => error.stack });
1379
1381
  }