@Gordon, for an original Espruino board (v1.4b) running 1v89, code entered right after a reset of an example right out of Mozilla Developer Network Arrow Function page ...
var max=(a,b)=>(a>b)?a:b;
max; // returns function (b) { native code }
max(4,6); // hangs indefinitely???
Hangs, and usually eventually generates an out of memory error message.
function max(a,b) { return (a>b)?a:b; }; // works fine
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.
@Gordon, for an original Espruino board (v1.4b) running 1v89, code entered right after a reset of an example right out of Mozilla Developer Network Arrow Function page ...
Hangs, and usually eventually generates an out of memory error message.