This is known issue with Esprima https://github.com/espruino/EspruinoTools/issues/64
I hit it very quickly when using lambdas too so I am currently torn between not using lambdas and switching to closure online minifier (which is sometimes slow).
The bug is from december 2018 and last comment suggests using terser in WebIDE in future. Terser is used e.g. in webpack.
© Espruino, powered by microcosm.
Report a problem