| OLD | NEW |
| (Empty) |
| 1 This test checks whether various forms of preincrement expression are allowed. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS ++x is 1 | |
| 7 PASS ++window.x is 2 | |
| 8 PASS ++window["x"] is 3 | |
| 9 PASS ++(x) is 4 | |
| 10 PASS ++(window.x) is 5 | |
| 11 PASS ++(window["x"]) is 6 | |
| 12 PASS (y, ++x) is 7 | |
| 13 PASS ++((x)) is 8 | |
| 14 PASS ++((window.x)) is 9 | |
| 15 PASS ++((window["x"])) is 10 | |
| 16 PASS ++(y, x) threw exception ReferenceError: Prefix ++ operator applied to valu
e that is not a reference.. | |
| 17 PASS ++(true ? x : y) threw exception ReferenceError: Prefix ++ operator applied
to value that is not a reference.. | |
| 18 PASS ++++x threw exception ReferenceError: Prefix ++ operator applied to value t
hat is not a reference.. | |
| 19 PASS successfullyParsed is true | |
| 20 | |
| 21 TEST COMPLETE | |
| 22 | |
| OLD | NEW |