mol_mutable 0.0.730 → 0.0.731

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
@@ -1260,13 +1260,12 @@ var $;
1260
1260
  break;
1261
1261
  }
1262
1262
  if ($mol_promise_like(result) && !handled.has(result)) {
1263
- handled.add(result);
1264
1263
  const put = (res) => {
1265
1264
  if (this.cache === result)
1266
1265
  this.put(res);
1267
1266
  return res;
1268
1267
  };
1269
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
1268
+ result = result.then(put, put);
1270
1269
  }
1271
1270
  }
1272
1271
  catch (error) {
@@ -1277,11 +1276,10 @@ var $;
1277
1276
  result = new Error(String(error), { cause: error });
1278
1277
  }
1279
1278
  if ($mol_promise_like(result) && !handled.has(result)) {
1280
- handled.add(result);
1281
- result = Object.assign(result.finally(() => {
1279
+ result = result.finally(() => {
1282
1280
  if (this.cache === result)
1283
1281
  this.absorb();
1284
- }), { destructor: result.destructor });
1282
+ });
1285
1283
  }
1286
1284
  }
1287
1285
  if ($mol_promise_like(result) && !handled.has(result)) {