mol_jsx_lib 0.0.1406 → 0.0.1408

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/web.mjs CHANGED
@@ -1117,10 +1117,12 @@ var $;
1117
1117
  result = wrappers.get(result);
1118
1118
  }
1119
1119
  else {
1120
- wrappers.set(result, result = Object.assign(result.finally(() => {
1120
+ const put = (v) => {
1121
1121
  if (this.cache === result)
1122
1122
  this.absorb();
1123
- }), { destructor: result.destructor || (() => { }) }));
1123
+ return v;
1124
+ };
1125
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
1124
1126
  const error = new Error(`Promise in ${this}`);
1125
1127
  Object.defineProperty(result, 'stack', { get: () => error.stack });
1126
1128
  }