1 This test checks whether various forms of preincrement expression are allowed.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
8 PASS ++window["x"] is 3
10 PASS ++(window.x) is 5
11 PASS ++(window["x"]) is 6
14 PASS ++((window.x)) is 9
15 PASS ++((window["x"])) is 10
16 PASS ++(y, x) threw exception ReferenceError: Invalid left-hand side expression in prefix operation.
17 PASS ++(true ? x : y) threw exception ReferenceError: Invalid left-hand side expression in prefix operation.
18 PASS ++++x threw exception ReferenceError: Invalid left-hand side expression in prefix operation.
19 PASS successfullyParsed is true