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