diff options
Diffstat (limited to 'js/src/tests/test262/language/expressions/assignment/non-simple-target.js')
-rw-r--r-- | js/src/tests/test262/language/expressions/assignment/non-simple-target.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/expressions/assignment/non-simple-target.js b/js/src/tests/test262/language/expressions/assignment/non-simple-target.js new file mode 100644 index 0000000000..a06f9fb7a4 --- /dev/null +++ b/js/src/tests/test262/language/expressions/assignment/non-simple-target.js @@ -0,0 +1,19 @@ +// |reftest| error:SyntaxError +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-assignment-operators-static-semantics-early-errors +info: | + It is an early Syntax Error if LeftHandSideExpression is neither an + ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of + LeftHandSideExpression is invalid or strict. +description: Assignment with non-simple target +negative: + phase: parse + type: SyntaxError +---*/ + +$DONOTEVALUATE(); + +1 = 1; |