mol_plot_all 1.2.1329 → 1.2.1330

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
@@ -877,9 +877,18 @@ var $;
877
877
  }
878
878
  destructor() {
879
879
  super.destructor();
880
- if ($mol_owning_check(this, this.cache)) {
880
+ if (!$mol_owning_check(this, this.cache))
881
+ return;
882
+ try {
881
883
  this.cache.destructor();
882
884
  }
885
+ catch (result) {
886
+ if ($mol_promise_like(result)) {
887
+ const error = new Error(`Promise in ${this}.destructor()`);
888
+ Object.defineProperty(result, 'stack', { get: () => error.stack });
889
+ }
890
+ $mol_fail_hidden(result);
891
+ }
883
892
  }
884
893
  }
885
894
  $.$mol_wire_fiber = $mol_wire_fiber;
package/node.test.js CHANGED
@@ -868,9 +868,18 @@ var $;
868
868
  }
869
869
  destructor() {
870
870
  super.destructor();
871
- if ($mol_owning_check(this, this.cache)) {
871
+ if (!$mol_owning_check(this, this.cache))
872
+ return;
873
+ try {
872
874
  this.cache.destructor();
873
875
  }
876
+ catch (result) {
877
+ if ($mol_promise_like(result)) {
878
+ const error = new Error(`Promise in ${this}.destructor()`);
879
+ Object.defineProperty(result, 'stack', { get: () => error.stack });
880
+ }
881
+ $mol_fail_hidden(result);
882
+ }
874
883
  }
875
884
  }
876
885
  $.$mol_wire_fiber = $mol_wire_fiber;