mol_wire_lib 1.0.905 → 1.0.907

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,20 +814,26 @@ var $;
814
814
  return this.cache;
815
815
  }
816
816
  async async() {
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(() => { });
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
+ }
829
831
  }
830
832
  }
833
+ catch (e) {
834
+ console.log(e.stack);
835
+ throw e;
836
+ }
831
837
  }
832
838
  step() {
833
839
  return new Promise(done => {