diff options
Diffstat (limited to 'js/src/tests/test262/language/expressions/compound-assignment/subtract-non-simple.js')
-rw-r--r-- | js/src/tests/test262/language/expressions/compound-assignment/subtract-non-simple.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/expressions/compound-assignment/subtract-non-simple.js b/js/src/tests/test262/language/expressions/compound-assignment/subtract-non-simple.js new file mode 100644 index 0000000000..b7287ac573 --- /dev/null +++ b/js/src/tests/test262/language/expressions/compound-assignment/subtract-non-simple.js @@ -0,0 +1,18 @@ +// |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 AssignmentTargetType of + LeftHandSideExpression is invalid or strict. +description: Compound subtraction assignment with non-simple target +negative: + phase: parse + type: SyntaxError +---*/ + +$DONOTEVALUATE(); + +1 -= 1; |