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/node.js CHANGED
@@ -1458,7 +1458,7 @@ var $;
1458
1458
  return res;
1459
1459
  };
1460
1460
  result = Object.assign(result.then(put, put), {
1461
- destructor: result['destructor']
1461
+ destructor: result['destructor'] ?? (() => { })
1462
1462
  });
1463
1463
  handled.add(result);
1464
1464
  }
@@ -1475,7 +1475,7 @@ var $;
1475
1475
  if (this.cache === result)
1476
1476
  this.absorb();
1477
1477
  }), {
1478
- destructor: result['destructor']
1478
+ destructor: result['destructor'] ?? (() => { })
1479
1479
  });
1480
1480
  handled.add(result);
1481
1481
  }
@@ -1723,6 +1723,8 @@ var $;
1723
1723
  };
1724
1724
  }
1725
1725
  complete() {
1726
+ if (this.cache instanceof Promise)
1727
+ return;
1726
1728
  this.destructor();
1727
1729
  }
1728
1730
  put(next) {
@@ -1850,7 +1852,9 @@ var $;
1850
1852
  try {
1851
1853
  next[Symbol.toStringTag] = this[Symbol.toStringTag];
1852
1854
  }
1853
- catch { }
1855
+ catch {
1856
+ Object.defineProperty(next, Symbol.toStringTag, { value: this[Symbol.toStringTag] });
1857
+ }
1854
1858
  }
1855
1859
  if (this.sub_from < this.data.length) {
1856
1860
  if (!$mol_compare_deep(prev, next)) {