You are reading a single comment by @CanyonCasa and its replies. Click here to read the full conversation.
  • @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
    
About

Avatar for CanyonCasa @CanyonCasa started