• fyi Minification -> Pretokenise code break this code sample:

    function getValue() {
      return "test";
    }
    
    const val = getValue();
    
    console.log(val);
    
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v04.218 (c) 2019 G.Williams
    >Uncaught SyntaxError: BREAK statement outside of SWITCH, FOR or WHILE loop
     at line 1 col 1
    return"test";
         ^
    in function "getValue" called from line 3 col 15
    const val=getValue();
                       ^
    undefined
    >
    

    This might be something that should still be fixed in the beta

About

Avatar for bertyhell @bertyhell started