mol_compare_deep 0.0.1200 → 0.0.1201

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
@@ -2346,9 +2346,18 @@ var $;
2346
2346
  }
2347
2347
  destructor() {
2348
2348
  super.destructor();
2349
- if ($mol_owning_check(this, this.cache)) {
2349
+ if (!$mol_owning_check(this, this.cache))
2350
+ return;
2351
+ try {
2350
2352
  this.cache.destructor();
2351
2353
  }
2354
+ catch (result) {
2355
+ if ($mol_promise_like(result)) {
2356
+ const error = new Error(`Promise in ${this}.destructor()`);
2357
+ Object.defineProperty(result, 'stack', { get: () => error.stack });
2358
+ }
2359
+ $mol_fail_hidden(result);
2360
+ }
2352
2361
  }
2353
2362
  }
2354
2363
  $.$mol_wire_fiber = $mol_wire_fiber;