It's possible the error you're hitting is because you've turned minification on and are using some ES6 features like arrow functions?
But as @Wilberforce says we'd need the full code - or at the very least some code that shows the error. Those two lines by themselves seem fine.
@Gordon started
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.
It's possible the error you're hitting is because you've turned minification on and are using some ES6 features like arrow functions?
But as @Wilberforce says we'd need the full code - or at the very least some code that shows the error. Those two lines by themselves seem fine.