• Hi all, I'm seeing this:

    var Util = {
        foo:x=>x.forEach(e=>console.log(e.length­))
    };
    

    This is valid ES6 code (https://repl.it/EyUS/0), yet:

    Uncaught SyntaxError: Got ID:console expected ','
     at line 3 col 23
      foo:(x)=>x.forEach(e=>console.log(e.leng­th))
                          ^
     at line 3 col 25
      foo:(x)=>x.forEach(e=>console.log(e.leng­th))
                            ^
    

    Am I misunderstanding something, or is this a bug in the interpreter?

About

Avatar for Ron @Ron started