Skip to content

Commit

Permalink
Update jsgen.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings authored Feb 11, 2024
1 parent 0dfb32e commit 8f2fa68
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/compiler/jsgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,13 @@ class JSGenerator {
this.source += `}\n`;
break;

case 'control.allAtOnce':
const previousWarp = this.isWarp;

Check failure on line 880 in src/compiler/jsgen.js

View workflow job for this annotation

GitHub Actions / build

Unexpected lexical declaration in case block
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;
Expand Down

0 comments on commit 8f2fa68

Please sign in to comment.