On Jul 12, 2013, at 5:09 PM, Andrew Fedoniouk wrote:
>
> Your hypothesis would be true if not this case:
>
> return
> { a:1 };
>
> Why it injects ';' after the return? This
Because, the actual ECMAScript grammar says a new line can't occur between the
'return' keyword and the optional return expression.
http://www.ecma-international.org/ecma-262/5.1/#sec-12.9
You really need to read and understand the relevant portions of the
specification before engaging in this sort of discussion.
http://www.ecma-international.org/ecma-262/5.1/#sec-7.9
Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss