mol_plot_all 1.2.1214 → 1.2.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.js CHANGED
@@ -789,12 +789,13 @@ var $;
789
789
  break;
790
790
  }
791
791
  if ($mol_promise_like(result) && !handled.has(result)) {
792
+ handled.add(result);
792
793
  const put = (res) => {
793
794
  if (this.cache === result)
794
795
  this.put(res);
795
796
  return res;
796
797
  };
797
- result = result.then(put, put);
798
+ result = Object.assign(result.then(put, put), { destructor: result.destructor });
798
799
  }
799
800
  }
800
801
  catch (error) {
@@ -805,10 +806,11 @@ var $;
805
806
  result = new Error(String(error), { cause: error });
806
807
  }
807
808
  if ($mol_promise_like(result) && !handled.has(result)) {
808
- result = result.finally(() => {
809
+ handled.add(result);
810
+ result = Object.assign(result.finally(() => {
809
811
  if (this.cache === result)
810
812
  this.absorb();
811
- });
813
+ }), { destructor: result.destructor });
812
814
  }
813
815
  }
814
816
  if ($mol_promise_like(result) && !handled.has(result)) {