Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/non-simple-target.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 It is an early Reference Error if LeftHandSideExpression is neither an
7 ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget of
8 LeftHandSideExpression is false.
9 es6id: 12.14.1
10 description: Assignment with non-simple target
11 negative:
12 phase: parse
13 type: ReferenceError
14 ---*/
15
16 throw "Test262: This statement should not be evaluated.";
17
18 1 = 1;