chrome IDE error with a let in a switch case #4763
Unanswered
espruino-discuss
asked this question in
Pico / Wifi / Original Espruino
Replies: 1 comment
-
Posted at 2018-12-26 by opichals @mrbbp As the same code runs in Chrome I believe this is an Espruino parser bug. Please submit an issue at https://github.com/espruino/Espruino/issues. Posted at 2018-12-26 by Mrbbp @opichals done Posted at 2019-01-07 by @gfwilliams Are you running with esprima (offline) minification on in the IDE?
This only seems to happen if you've turned on Esprima minification for your main source files? Posted at 2019-03-19 by @gfwilliams Just a note to say I found a newer version of esprima/esmangle that appears to fix this problem, so that should go into the IDE soon. |
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
-
Posted at 2018-12-26 by Mrbbp
Hello,
i find a strange behaviour of the chrome ide with a pico with v2.00 firmware
If i use a
let
in a switch case block, IDE generate an errori'm not not sure why it's wrong?
in an html page with the code it does not generate error
and for my point of view i could legaly use a
let
in the blockif i upload the code in the espruino, it works.
in a more complexe prog, it generate error in the code and nothing works (i've took some time to understand the prob)
if i change the
let
for avar
no error anymore and code run on the espruino
is it an error?
regards
Beta Was this translation helpful? Give feedback.
All reactions