mol_jsx_lib 0.0.159 → 0.0.162

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.js CHANGED
@@ -950,7 +950,7 @@ var $;
950
950
  return res;
951
951
  };
952
952
  result = Object.assign(result.then(put, put), {
953
- destructor: result['destructor']
953
+ destructor: result['destructor'] ?? (() => { })
954
954
  });
955
955
  handled.add(result);
956
956
  }
@@ -967,7 +967,7 @@ var $;
967
967
  if (this.cache === result)
968
968
  this.absorb();
969
969
  }), {
970
- destructor: result['destructor']
970
+ destructor: result['destructor'] ?? (() => { })
971
971
  });
972
972
  handled.add(result);
973
973
  }
@@ -1215,6 +1215,8 @@ var $;
1215
1215
  };
1216
1216
  }
1217
1217
  complete() {
1218
+ if (this.cache instanceof Promise)
1219
+ return;
1218
1220
  this.destructor();
1219
1221
  }
1220
1222
  put(next) {
@@ -1342,7 +1344,9 @@ var $;
1342
1344
  try {
1343
1345
  next[Symbol.toStringTag] = this[Symbol.toStringTag];
1344
1346
  }
1345
- catch { }
1347
+ catch {
1348
+ Object.defineProperty(next, Symbol.toStringTag, { value: this[Symbol.toStringTag] });
1349
+ }
1346
1350
  }
1347
1351
  if (this.sub_from < this.data.length) {
1348
1352
  if (!$mol_compare_deep(prev, next)) {