f() = x de facto standard

Peter van der Zee ecma at qfox.nl
Wed Aug 7 09:42:34 PDT 2013

On Wed, Aug 7, 2013 at 6:21 PM, Allen Wirfs-Brock <allen at wirfs-brock.com>wrote:

> I'm not sure where that analysis came from? As far as I know there were no
> such changes in ES5.1 and the ES5.1 grammar clearly allows a function call
> to appear on the LHS of an assignment.

I got it from https://code.google.com/p/esprima/issues/detail?id=81#c19,
maybe I should have dug deeper to confirm it...

> In addition, functions are no longer allowed to return Reference values.
>  I don't see us changing the latter, so it comes down whether the error is
> reported as an early syntax error or a runtime TypeError.

Probably what the bug is about.

- peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130807/7f01d29a/attachment.html>

More information about the es-discuss mailing list