mol_tree2 1.0.1202 → 1.0.1204

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
@@ -3739,10 +3739,12 @@ var $;
3739
3739
  result = wrappers.get(result);
3740
3740
  }
3741
3741
  else {
3742
- wrappers.set(result, result = Object.assign(result.finally(() => {
3742
+ const put = (v) => {
3743
3743
  if (this.cache === result)
3744
3744
  this.absorb();
3745
- }), { destructor: result.destructor || (() => { }) }));
3745
+ return v;
3746
+ };
3747
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
3746
3748
  const error = new Error(`Promise in ${this}`);
3747
3749
  Object.defineProperty(result, 'stack', { get: () => error.stack });
3748
3750
  }