> On Nov 13, 2016, at 10:49 AM, Isiah Meadows <[email protected]> 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 
http://www.ecma-international.org/ecma-262/7.0/index.html#sec-assignment-operators-static-semantics-early-errors
 
<http://www.ecma-international.org/ecma-262/7.0/index.html#sec-assignment-operators-static-semantics-early-errors>
 


It is an early Reference 
<http://www.ecma-international.org/ecma-262/7.0/index.html#sec-reference-specification-type>
 Error if LeftHandSideExpression 
<http://www.ecma-international.org/ecma-262/7.0/index.html#prod-LeftHandSideExpression>
 is neither an ObjectLiteral 
<http://www.ecma-international.org/ecma-262/7.0/index.html#prod-ObjectLiteral> 
nor an ArrayLiteral 
<http://www.ecma-international.org/ecma-262/7.0/index.html#prod-ArrayLiteral> 
and IsValidSimpleAssignmentTarget of LeftHandSideExpression 
<http://www.ecma-international.org/ecma-262/7.0/index.html#prod-LeftHandSideExpression>
 is false.



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to