mol_regexp 0.0.1349 → 0.0.1351

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
@@ -1525,13 +1525,12 @@ var $;
1525
1525
  break;
1526
1526
  }
1527
1527
  if ($mol_promise_like(result) && !handled.has(result)) {
1528
- handled.add(result);
1529
1528
  const put = (res) => {
1530
1529
  if (this.cache === result)
1531
1530
  this.put(res);
1532
1531
  return res;
1533
1532
  };
1534
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
1533
+ result = result.then(put, put);
1535
1534
  }
1536
1535
  }
1537
1536
  catch (error) {
@@ -1542,11 +1541,10 @@ var $;
1542
1541
  result = new Error(String(error), { cause: error });
1543
1542
  }
1544
1543
  if ($mol_promise_like(result) && !handled.has(result)) {
1545
- handled.add(result);
1546
- result = Object.assign(result.finally(() => {
1544
+ result = result.finally(() => {
1547
1545
  if (this.cache === result)
1548
1546
  this.absorb();
1549
- }), { destructor: result.destructor });
1547
+ });
1550
1548
  }
1551
1549
  }
1552
1550
  if ($mol_promise_like(result) && !handled.has(result)) {