mol_data_all 1.1.1295 → 1.1.1296

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.test.js CHANGED
@@ -1721,12 +1721,13 @@ var $;
1721
1721
  break;
1722
1722
  }
1723
1723
  if ($mol_promise_like(result) && !handled.has(result)) {
1724
+ handled.add(result);
1724
1725
  const put = (res) => {
1725
1726
  if (this.cache === result)
1726
1727
  this.put(res);
1727
1728
  return res;
1728
1729
  };
1729
- result = result.then(put, put);
1730
+ result = Object.assign(result.then(put, put), { destructor: result.destructor });
1730
1731
  }
1731
1732
  }
1732
1733
  catch (error) {
@@ -1737,10 +1738,11 @@ var $;
1737
1738
  result = new Error(String(error), { cause: error });
1738
1739
  }
1739
1740
  if ($mol_promise_like(result) && !handled.has(result)) {
1740
- result = result.finally(() => {
1741
+ handled.add(result);
1742
+ result = Object.assign(result.finally(() => {
1741
1743
  if (this.cache === result)
1742
1744
  this.absorb();
1743
- });
1745
+ }), { destructor: result.destructor });
1744
1746
  }
1745
1747
  }
1746
1748
  if ($mol_promise_like(result) && !handled.has(result)) {