Destructuring object outside of var declaration

Allen Wirfs-Brock allen at
Sun Nov 13 19:45:21 UTC 2016

> On Nov 13, 2016, at 10:49 AM, Isiah Meadows <isiahmeadows at> wrote:
> Firefox likely has a parser bug (it should never throw a ReferenceError in that situation).
FireFox is correct, Chrome is wrong. See the second early error rule at <> 

It is an early Reference <> Error if LeftHandSideExpression <> is neither an ObjectLiteral <> nor an ArrayLiteral <> and IsValidSimpleAssignmentTarget of LeftHandSideExpression <> is false.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list