mol_regexp 0.0.1461 → 0.0.1463

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
@@ -1564,9 +1564,18 @@ var $;
1564
1564
  }
1565
1565
  destructor() {
1566
1566
  super.destructor();
1567
- if ($mol_owning_check(this, this.cache)) {
1567
+ if (!$mol_owning_check(this, this.cache))
1568
+ return;
1569
+ try {
1568
1570
  this.cache.destructor();
1569
1571
  }
1572
+ catch (result) {
1573
+ if ($mol_promise_like(result)) {
1574
+ const error = new Error(`Promise in ${this}.destructor()`);
1575
+ Object.defineProperty(result, 'stack', { get: () => error.stack });
1576
+ }
1577
+ $mol_fail_hidden(result);
1578
+ }
1570
1579
  }
1571
1580
  }
1572
1581
  $.$mol_wire_fiber = $mol_wire_fiber;