diff options
Diffstat (limited to 'js/src/tests/test262/language/expressions/prefix-increment/eval-nostrict.js')
-rw-r--r-- | js/src/tests/test262/language/expressions/prefix-increment/eval-nostrict.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/expressions/prefix-increment/eval-nostrict.js b/js/src/tests/test262/language/expressions/prefix-increment/eval-nostrict.js new file mode 100644 index 0000000000..8bebe8850e --- /dev/null +++ b/js/src/tests/test262/language/expressions/prefix-increment/eval-nostrict.js @@ -0,0 +1,25 @@ +// Copyright (c) 2018 Rick Waldron. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-update-expressions +description: > + In non-strict code, "++eval" does not produce an early error. +info: | + sec-identifiers-static-semantics-assignmenttargettype + + 1. If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return strict. + 2. Return simple. + + sec-update-expressions-static-semantics-early-errors + + UpdateExpression ++ UnaryExpression + + It is an early Reference Error if AssignmentTargetType of UnaryExpression is invalid. + It is an early Syntax Error if AssignmentTargetType of UnaryExpression is strict. +flags: [noStrict] +---*/ + +++eval; + +reportCompare(0, 0); |