Return in switch statements #620
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 2 comments
-
Posted at 2016-09-12 by @gfwilliams Thanks - I'll take a look at this and will see if I can fix it |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2016-09-12 by @gfwilliams Ok, it's now fixed, so give the builds a few minutes and you'll have a working version available. Thanks again for tracking this down to a small example and an 'expected' + 'what I get' output. It makes it miles easier for me to track problems down. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-09-12 by vprunet
Return within switch statements are handled like a break (and do not return anything).
See the following example, with execution trace on Espruino and on node.js .
on espruino, shows as
on node.js, shows as
Beta Was this translation helpful? Give feedback.
All reactions