Debian Codegraph @

js/src/tests/test262/language/expressions/postfix-increment/this.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2023 Veera Sivarajan. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-update-expressions-static-semantics-early-errors
7 description: >
8 It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. (this)
9 info: |
10 sec-static-semantics-assignmenttargettype
11
12 PrimaryExpression: this
13
14 Return invalid.
15
16 sec-update-expressions-static-semantics-early-errors
17
18 UpdateExpression: LeftHandSideExpression ++
19
20 It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
21 negative:
22 phase: parse
23 type: SyntaxError
24 ---*/
25
26 $DONOTEVALUATE();
27
28 this++;