mol_regexp 0.0.1645 → 0.0.1647

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
@@ -1635,10 +1635,12 @@ var $;
1635
1635
  result = wrappers.get(result);
1636
1636
  }
1637
1637
  else {
1638
- wrappers.set(result, result = Object.assign(result.finally(() => {
1638
+ const put = (v) => {
1639
1639
  if (this.cache === result)
1640
1640
  this.absorb();
1641
- }), { destructor: result.destructor || (() => { }) }));
1641
+ return v;
1642
+ };
1643
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
1642
1644
  const error = new Error(`Promise in ${this}`);
1643
1645
  Object.defineProperty(result, 'stack', { get: () => error.stack });
1644
1646
  }