mol_jsx_lib 0.0.1214 → 0.0.1216

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
@@ -1024,9 +1024,18 @@ var $;
1024
1024
  }
1025
1025
  destructor() {
1026
1026
  super.destructor();
1027
- if ($mol_owning_check(this, this.cache)) {
1027
+ if (!$mol_owning_check(this, this.cache))
1028
+ return;
1029
+ try {
1028
1030
  this.cache.destructor();
1029
1031
  }
1032
+ catch (result) {
1033
+ if ($mol_promise_like(result)) {
1034
+ const error = new Error(`Promise in ${this}.destructor()`);
1035
+ Object.defineProperty(result, 'stack', { get: () => error.stack });
1036
+ }
1037
+ $mol_fail_hidden(result);
1038
+ }
1030
1039
  }
1031
1040
  }
1032
1041
  $.$mol_wire_fiber = $mol_wire_fiber;
package/node.test.js CHANGED
@@ -1015,9 +1015,18 @@ var $;
1015
1015
  }
1016
1016
  destructor() {
1017
1017
  super.destructor();
1018
- if ($mol_owning_check(this, this.cache)) {
1018
+ if (!$mol_owning_check(this, this.cache))
1019
+ return;
1020
+ try {
1019
1021
  this.cache.destructor();
1020
1022
  }
1023
+ catch (result) {
1024
+ if ($mol_promise_like(result)) {
1025
+ const error = new Error(`Promise in ${this}.destructor()`);
1026
+ Object.defineProperty(result, 'stack', { get: () => error.stack });
1027
+ }
1028
+ $mol_fail_hidden(result);
1029
+ }
1021
1030
  }
1022
1031
  }
1023
1032
  $.$mol_wire_fiber = $mol_wire_fiber;