mol_jsx_lib 0.0.1093 → 0.0.1095

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.mjs CHANGED
@@ -1412,13 +1412,12 @@ var $;
1412
1412
  break;
1413
1413
  }
1414
1414
  if ($mol_promise_like(result) && !handled.has(result)) {
1415
- handled.add(result);
1416
1415
  const put = (res) => {
1417
1416
  if (this.cache === result)
1418
1417
  this.put(res);
1419
1418
  return res;
1420
1419
  };
1421
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
1420
+ result = result.then(put, put);
1422
1421
  }
1423
1422
  }
1424
1423
  catch (error) {
@@ -1429,11 +1428,10 @@ var $;
1429
1428
  result = new Error(String(error), { cause: error });
1430
1429
  }
1431
1430
  if ($mol_promise_like(result) && !handled.has(result)) {
1432
- handled.add(result);
1433
- result = Object.assign(result.finally(() => {
1431
+ result = result.finally(() => {
1434
1432
  if (this.cache === result)
1435
1433
  this.absorb();
1436
- }), { destructor: result.destructor });
1434
+ });
1437
1435
  }
1438
1436
  }
1439
1437
  if ($mol_promise_like(result) && !handled.has(result)) {
package/node.test.js CHANGED
@@ -1403,13 +1403,12 @@ var $;
1403
1403
  break;
1404
1404
  }
1405
1405
  if ($mol_promise_like(result) && !handled.has(result)) {
1406
- handled.add(result);
1407
1406
  const put = (res) => {
1408
1407
  if (this.cache === result)
1409
1408
  this.put(res);
1410
1409
  return res;
1411
1410
  };
1412
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
1411
+ result = result.then(put, put);
1413
1412
  }
1414
1413
  }
1415
1414
  catch (error) {
@@ -1420,11 +1419,10 @@ var $;
1420
1419
  result = new Error(String(error), { cause: error });
1421
1420
  }
1422
1421
  if ($mol_promise_like(result) && !handled.has(result)) {
1423
- handled.add(result);
1424
- result = Object.assign(result.finally(() => {
1422
+ result = result.finally(() => {
1425
1423
  if (this.cache === result)
1426
1424
  this.absorb();
1427
- }), { destructor: result.destructor });
1425
+ });
1428
1426
  }
1429
1427
  }
1430
1428
  if ($mol_promise_like(result) && !handled.has(result)) {