Debian Codegraph @

js/src/tests/test262/language/expressions/postfix-increment/eval-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright (c) 2012 Ecma International. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5
6 /*---
7 esid: sec-identifiers-static-semantics-assignmenttargettype
8 description: >
9 If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return strict.
10 info: |
11 sec-update-expressions-static-semantics-early-errors
12
13 UpdateExpression: LeftHandSideExpression ++
14
15 It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is strict.
16 flags: [onlyStrict]
17 negative:
18 phase: parse
19 type: SyntaxError
20 ---*/
21
22 $DONOTEVALUATE();
23
24 eval++;