mol_tree2 1.0.897 → 1.0.899

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_tree2",
3
- "version": "1.0.897",
3
+ "version": "1.0.899",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
package/web.test.js CHANGED
@@ -2427,12 +2427,13 @@ var $;
2427
2427
  break;
2428
2428
  }
2429
2429
  if ($mol_promise_like(result) && !handled.has(result)) {
2430
+ handled.add(result);
2430
2431
  const put = (res) => {
2431
2432
  if (this.cache === result)
2432
2433
  this.put(res);
2433
2434
  return res;
2434
2435
  };
2435
- result = result.then(put, put);
2436
+ result = Object.assign(result.then(put, put), { destructor: result.destructor });
2436
2437
  }
2437
2438
  }
2438
2439
  catch (error) {
@@ -2443,10 +2444,11 @@ var $;
2443
2444
  result = new Error(String(error), { cause: error });
2444
2445
  }
2445
2446
  if ($mol_promise_like(result) && !handled.has(result)) {
2446
- result = result.finally(() => {
2447
+ handled.add(result);
2448
+ result = Object.assign(result.finally(() => {
2447
2449
  if (this.cache === result)
2448
2450
  this.absorb();
2449
- });
2451
+ }), { destructor: result.destructor });
2450
2452
  }
2451
2453
  }
2452
2454
  if ($mol_promise_like(result) && !handled.has(result)) {