Uncaught SyntaxError: Got ';' expected EOF
at line 1 col 33
...te?(LED.set(),print(32,()=>;)):(LED.reset(),print(0,()=>;));...
^
Basically Espruino doesn't like the minification to ()=>; - which seems fair. If you try running console.log(32,()=>;) in the browser or node.js then it returns an error - so this seems to be a bug in the minifier!
If you really do want to keep minifying (although there really isn't any need for what you have right now) teh try changing () => {} to _=>0 - it'll save a few characters and will minify properly.
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.
Ok, just checked this out, you can reproduce it just with:
It says:
Basically Espruino doesn't like the minification to
()=>;
- which seems fair. If you try runningconsole.log(32,()=>;)
in the browser or node.js then it returns an error - so this seems to be a bug in the minifier!If you really do want to keep minifying (although there really isn't any need for what you have right now) teh try changing
() => {}
to_=>0
- it'll save a few characters and will minify properly.