mol_jsx_lib 0.0.773 → 0.0.775

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/web.mjs CHANGED
@@ -1037,20 +1037,26 @@ var $;
1037
1037
  return this.cache;
1038
1038
  }
1039
1039
  async async() {
1040
- while (true) {
1041
- this.fresh();
1042
- if (this.cache instanceof Error) {
1043
- $mol_fail_hidden(this.cache);
1044
- }
1045
- if (!$mol_promise_like(this.cache))
1046
- return this.cache;
1047
- await Promise.race([this.cache, this.step()]);
1048
- if (!$mol_promise_like(this.cache))
1049
- return this.cache;
1050
- if (this.cursor === $mol_wire_cursor.final) {
1051
- await new Promise(() => { });
1040
+ try {
1041
+ while (true) {
1042
+ this.fresh();
1043
+ if (this.cache instanceof Error) {
1044
+ $mol_fail_hidden(this.cache);
1045
+ }
1046
+ if (!$mol_promise_like(this.cache))
1047
+ return this.cache;
1048
+ await Promise.race([this.cache, this.step()]);
1049
+ if (!$mol_promise_like(this.cache))
1050
+ return this.cache;
1051
+ if (this.cursor === $mol_wire_cursor.final) {
1052
+ await new Promise(() => { });
1053
+ }
1052
1054
  }
1053
1055
  }
1056
+ catch (e) {
1057
+ e.message += '\n' + e.stack;
1058
+ throw e;
1059
+ }
1054
1060
  }
1055
1061
  step() {
1056
1062
  return new Promise(done => {