mol_plot_all 1.2.297 → 1.2.298

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
@@ -1709,7 +1709,8 @@ var $;
1709
1709
  class $mol_wire_task extends $mol_wire_fiber {
1710
1710
  static getter(task) {
1711
1711
  return function $mol_wire_task_get(host, args) {
1712
- const existen = $mol_wire_auto()?.track_next();
1712
+ const sub = $mol_wire_auto();
1713
+ const existen = sub?.track_next();
1713
1714
  reuse: if (existen) {
1714
1715
  if (!(existen instanceof $mol_wire_task))
1715
1716
  break reuse;
@@ -1721,6 +1722,9 @@ var $;
1721
1722
  break reuse;
1722
1723
  return existen;
1723
1724
  }
1725
+ if (existen && sub instanceof $mol_wire_task) {
1726
+ $mol_fail(new Error(`$mol_wire_task detects nonidempotency\n${existen}`));
1727
+ }
1724
1728
  return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
1725
1729
  };
1726
1730
  }