mol_wire_lib 1.0.908 → 1.0.910

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
@@ -814,25 +814,19 @@ var $;
814
814
  return this.cache;
815
815
  }
816
816
  async async() {
817
- try {
818
- while (true) {
819
- this.fresh();
820
- if (this.cache instanceof Error) {
821
- $mol_fail_hidden(this.cache);
822
- }
823
- if (!$mol_promise_like(this.cache))
824
- return this.cache;
825
- await Promise.race([this.cache, this.step()]);
826
- if (!$mol_promise_like(this.cache))
827
- return this.cache;
828
- if (this.cursor === $mol_wire_cursor.final) {
829
- await new Promise(() => { });
830
- }
817
+ while (true) {
818
+ this.fresh();
819
+ if (this.cache instanceof Error) {
820
+ $mol_fail_hidden(this.cache);
821
+ }
822
+ if (!$mol_promise_like(this.cache))
823
+ return this.cache;
824
+ await Promise.race([this.cache, this.step()]);
825
+ if (!$mol_promise_like(this.cache))
826
+ return this.cache;
827
+ if (this.cursor === $mol_wire_cursor.final) {
828
+ await new Promise(() => { });
831
829
  }
832
- }
833
- catch (e) {
834
- e.message += '\n' + e.stack;
835
- throw e;
836
830
  }
837
831
  }
838
832
  step() {
@@ -1229,6 +1223,7 @@ var $;
1229
1223
  if (!$mol_fail_catch(error))
1230
1224
  return false;
1231
1225
  console.error(error);
1226
+ console.error(error.stack);
1232
1227
  return true;
1233
1228
  }
1234
1229
  $.$mol_fail_log = $mol_fail_log;