mol_wire_lib 1.0.175 → 1.0.176

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
@@ -578,9 +578,12 @@ var $;
578
578
  }
579
579
  static sync() {
580
580
  while (this.planning.size) {
581
- const fibers = this.planning;
582
- this.planning = new Set;
583
- for (const fiber of fibers) {
581
+ for (const fiber of this.planning) {
582
+ this.planning.delete(fiber);
583
+ if (fiber.cursor >= 0)
584
+ continue;
585
+ if (fiber.cursor === $mol_wire_cursor.final)
586
+ continue;
584
587
  fiber.refresh();
585
588
  }
586
589
  }