mol_wire_dom 0.0.1332 → 0.0.1333

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.mjs CHANGED
@@ -842,9 +842,18 @@ var $;
842
842
  }
843
843
  destructor() {
844
844
  super.destructor();
845
- if ($mol_owning_check(this, this.cache)) {
845
+ if (!$mol_owning_check(this, this.cache))
846
+ return;
847
+ try {
846
848
  this.cache.destructor();
847
849
  }
850
+ catch (result) {
851
+ if ($mol_promise_like(result)) {
852
+ const error = new Error(`Promise in ${this}.destructor()`);
853
+ Object.defineProperty(result, 'stack', { get: () => error.stack });
854
+ }
855
+ $mol_fail_hidden(result);
856
+ }
848
857
  }
849
858
  }
850
859
  $.$mol_wire_fiber = $mol_wire_fiber;
package/node.test.js CHANGED
@@ -833,9 +833,18 @@ var $;
833
833
  }
834
834
  destructor() {
835
835
  super.destructor();
836
- if ($mol_owning_check(this, this.cache)) {
836
+ if (!$mol_owning_check(this, this.cache))
837
+ return;
838
+ try {
837
839
  this.cache.destructor();
838
840
  }
841
+ catch (result) {
842
+ if ($mol_promise_like(result)) {
843
+ const error = new Error(`Promise in ${this}.destructor()`);
844
+ Object.defineProperty(result, 'stack', { get: () => error.stack });
845
+ }
846
+ $mol_fail_hidden(result);
847
+ }
839
848
  }
840
849
  }
841
850
  $.$mol_wire_fiber = $mol_wire_fiber;