Uncaught SyntaxError: BREAK statement outside of SWITCH, FOR or WHILE loop #551
Replies: 4 comments
-
Posted at 2016-04-20 by DrAzzy Why do you have a break after default? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-04-20 by ClearMemory041063 Removing it doesn't fix it
And the code with the default break commented
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-04-21 by @gfwilliams Ok, it looks like this is an Espruino issue caused by It can be caused just by:
To work around this for now, add:
and then call |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-04-21 by ClearMemory041063 Thanks for taking action |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-04-20 by ClearMemory041063
Uncaught SyntaxError: BREAK statement outside of SWITCH, FOR or WHILE loop
(But it's not.)
On the left side:
The program continues running.
Part of the code on the right side
Changing the code removes the error.
And on the left side:
Beta Was this translation helpful? Give feedback.
All reactions