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 is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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.