-
• #2
@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/issÂues.
-
• #4
Are you running with esprima (offline) minification on in the IDE?
- If I just copy/paste this into the left-hand side of Espruino it works great.
- If I run with no minification it works great
- If I run with closure minification it works great
This only seems to happen if you've turned on Esprima minification for your main source files?
- If I just copy/paste this into the left-hand side of Espruino it works great.
-
• #5
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.
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