mol_key 0.0.1069 → 0.0.1071

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
@@ -2120,13 +2120,12 @@ var $;
2120
2120
  break;
2121
2121
  }
2122
2122
  if ($mol_promise_like(result) && !handled.has(result)) {
2123
- handled.add(result);
2124
2123
  const put = (res) => {
2125
2124
  if (this.cache === result)
2126
2125
  this.put(res);
2127
2126
  return res;
2128
2127
  };
2129
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
2128
+ result = result.then(put, put);
2130
2129
  }
2131
2130
  }
2132
2131
  catch (error) {
@@ -2137,11 +2136,10 @@ var $;
2137
2136
  result = new Error(String(error), { cause: error });
2138
2137
  }
2139
2138
  if ($mol_promise_like(result) && !handled.has(result)) {
2140
- handled.add(result);
2141
- result = Object.assign(result.finally(() => {
2139
+ result = result.finally(() => {
2142
2140
  if (this.cache === result)
2143
2141
  this.absorb();
2144
- }), { destructor: result.destructor });
2142
+ });
2145
2143
  }
2146
2144
  }
2147
2145
  if ($mol_promise_like(result) && !handled.has(result)) {