non-simple-target.js (551B)
1 // |reftest| error:SyntaxError 2 // Copyright 2009 the Sputnik authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: sec-assignment-operators-static-semantics-early-errors 7 info: | 8 It is an early Syntax Error if LeftHandSideExpression is neither an 9 ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of 10 LeftHandSideExpression is invalid or strict. 11 description: Assignment with non-simple target 12 negative: 13 phase: parse 14 type: SyntaxError 15 ---*/ 16 17 $DONOTEVALUATE(); 18 19 1 = 1;