mol_jsx_lib 0.0.110 → 0.0.111

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
@@ -1699,7 +1699,8 @@ var $;
1699
1699
  class $mol_wire_task extends $mol_wire_fiber {
1700
1700
  static getter(task) {
1701
1701
  return function $mol_wire_task_get(host, args) {
1702
- const existen = $mol_wire_auto()?.track_next();
1702
+ const sub = $mol_wire_auto();
1703
+ const existen = sub?.track_next();
1703
1704
  reuse: if (existen) {
1704
1705
  if (!(existen instanceof $mol_wire_task))
1705
1706
  break reuse;
@@ -1711,6 +1712,9 @@ var $;
1711
1712
  break reuse;
1712
1713
  return existen;
1713
1714
  }
1715
+ if (existen && sub instanceof $mol_wire_task) {
1716
+ $mol_fail(new Error(`$mol_wire_task detects nonidempotency\n${existen}`));
1717
+ }
1714
1718
  return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
1715
1719
  };
1716
1720
  }