mol_tree2 1.0.899 → 1.0.901

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
@@ -4335,13 +4335,12 @@ var $;
4335
4335
  break;
4336
4336
  }
4337
4337
  if ($mol_promise_like(result) && !handled.has(result)) {
4338
- handled.add(result);
4339
4338
  const put = (res) => {
4340
4339
  if (this.cache === result)
4341
4340
  this.put(res);
4342
4341
  return res;
4343
4342
  };
4344
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
4343
+ result = result.then(put, put);
4345
4344
  }
4346
4345
  }
4347
4346
  catch (error) {
@@ -4352,11 +4351,10 @@ var $;
4352
4351
  result = new Error(String(error), { cause: error });
4353
4352
  }
4354
4353
  if ($mol_promise_like(result) && !handled.has(result)) {
4355
- handled.add(result);
4356
- result = Object.assign(result.finally(() => {
4354
+ result = result.finally(() => {
4357
4355
  if (this.cache === result)
4358
4356
  this.absorb();
4359
- }), { destructor: result.destructor });
4357
+ });
4360
4358
  }
4361
4359
  }
4362
4360
  if ($mol_promise_like(result) && !handled.has(result)) {