Arrow function followed by divide or syntax error?
Waldemar Horwat
waldemar at google.com
Wed May 24 14:16:36 UTC 2017
x=x=>{}/alert(1)/+alert(2)// is a syntax error. We deliberately specified
it that way in the standard for the precedence reasons stated earlier in
the thread.
Brian Terlson is filing a bug as we speak.
Waldemar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170524/325ecf03/attachment.html>
More information about the es-discuss
mailing list