From 8f2fa68acc9b07ef9f5a05436769010382707b14 Mon Sep 17 00:00:00 2001 From: LilyMakesThings <127533508+LilyMakesThings@users.noreply.github.com> Date: Sun, 11 Feb 2024 20:37:19 +0000 Subject: [PATCH] Update jsgen.js --- src/compiler/jsgen.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/compiler/jsgen.js b/src/compiler/jsgen.js index ff07f3f0d57..b9a6c5e538b 100644 --- a/src/compiler/jsgen.js +++ b/src/compiler/jsgen.js @@ -876,6 +876,13 @@ class JSGenerator { this.source += `}\n`; break; + case 'control.allAtOnce': + const previousWarp = this.isWarp; + this.isWarp = true; + this.descendStack(node.code, new Frame(false, 'control.allAtOnce')); + this.isWarp = previousWarp; + break; + case 'counter.clear': this.source += 'runtime.ext_scratch3_control._counter = 0;\n'; break;