mol_wire_lib 1.0.1227 → 1.0.1229

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
@@ -754,13 +754,12 @@ var $;
754
754
  break;
755
755
  }
756
756
  if ($mol_promise_like(result) && !handled.has(result)) {
757
- handled.add(result);
758
757
  const put = (res) => {
759
758
  if (this.cache === result)
760
759
  this.put(res);
761
760
  return res;
762
761
  };
763
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
762
+ result = result.then(put, put);
764
763
  }
765
764
  }
766
765
  catch (error) {
@@ -771,11 +770,10 @@ var $;
771
770
  result = new Error(String(error), { cause: error });
772
771
  }
773
772
  if ($mol_promise_like(result) && !handled.has(result)) {
774
- handled.add(result);
775
- result = Object.assign(result.finally(() => {
773
+ result = result.finally(() => {
776
774
  if (this.cache === result)
777
775
  this.absorb();
778
- }), { destructor: result.destructor });
776
+ });
779
777
  }
780
778
  }
781
779
  if ($mol_promise_like(result) && !handled.has(result)) {