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.test.js CHANGED
@@ -1450,7 +1450,7 @@ var $;
1450
1450
  return res;
1451
1451
  };
1452
1452
  result = Object.assign(result.then(put, put), {
1453
- destructor: result['destructor']
1453
+ destructor: result['destructor'] ?? (() => { })
1454
1454
  });
1455
1455
  handled.add(result);
1456
1456
  }
@@ -1467,7 +1467,7 @@ var $;
1467
1467
  if (this.cache === result)
1468
1468
  this.absorb();
1469
1469
  }), {
1470
- destructor: result['destructor']
1470
+ destructor: result['destructor'] ?? (() => { })
1471
1471
  });
1472
1472
  handled.add(result);
1473
1473
  }
@@ -1715,6 +1715,8 @@ var $;
1715
1715
  };
1716
1716
  }
1717
1717
  complete() {
1718
+ if (this.cache instanceof Promise)
1719
+ return;
1718
1720
  this.destructor();
1719
1721
  }
1720
1722
  put(next) {
@@ -1842,7 +1844,9 @@ var $;
1842
1844
  try {
1843
1845
  next[Symbol.toStringTag] = this[Symbol.toStringTag];
1844
1846
  }
1845
- catch { }
1847
+ catch {
1848
+ Object.defineProperty(next, Symbol.toStringTag, { value: this[Symbol.toStringTag] });
1849
+ }
1846
1850
  }
1847
1851
  if (this.sub_from < this.data.length) {
1848
1852
  if (!$mol_compare_deep(prev, next)) {
@@ -2538,7 +2542,7 @@ var $;
2538
2542
  scheduled = false;
2539
2543
  await $mol_test_run();
2540
2544
  $$.$mol_test_complete();
2541
- }, 0);
2545
+ }, 1000);
2542
2546
  }
2543
2547
  $_1.$mol_test_schedule = $mol_test_schedule;
2544
2548
  $_1.$mol_test_mocks.push(context => {