mol_compare_deep 0.0.1384 → 0.0.1386

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
@@ -2477,10 +2477,12 @@ var $;
2477
2477
  result = wrappers.get(result);
2478
2478
  }
2479
2479
  else {
2480
- wrappers.set(result, result = Object.assign(result.finally(() => {
2480
+ const put = (v) => {
2481
2481
  if (this.cache === result)
2482
2482
  this.absorb();
2483
- }), { destructor: result.destructor || (() => { }) }));
2483
+ return v;
2484
+ };
2485
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
2484
2486
  const error = new Error(`Promise in ${this}`);
2485
2487
  Object.defineProperty(result, 'stack', { get: () => error.stack });
2486
2488
  }