Closed idobh2 closed 1 year ago
Thanks! That's interesting - it must not be restoring state properly after the switch exits.
I don't think I'll get a chance to look into this today, but I'll see what can be done later in the week
@gfwilliams thank for the quick response - got async/await to work!
Continuing my attempts to transpile async/await to ES5, I encountered another issue. In both
for
andwhile
loops, if the executed block has aswitch
statement in it, and thedefault
block has acontinue
statement - the rest of thewhile
block is executed instead of jumping to the next iteration.In case the
switch
statement has acase
which statescontinue
- it crashes with aUncaught SyntaxError: CONTINUE statement outside of FOR or WHILE loop
errorThis is reconstructed on both stable and latest builds, tested on emulator as well.