| OLD | NEW |
| (Empty) |
| 1 This test checks whether various forms of postincrement 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 0 | |
| 7 PASS window.x++ is 1 | |
| 8 PASS window["x"]++ is 2 | |
| 9 PASS (x)++ is 3 | |
| 10 PASS (window.x)++ is 4 | |
| 11 PASS (window["x"])++ is 5 | |
| 12 PASS (y, x++) is 6 | |
| 13 PASS ((x))++ is 7 | |
| 14 PASS ((window.x))++ is 8 | |
| 15 PASS ((window["x"]))++ is 9 | |
| 16 PASS (y, x)++ threw exception ReferenceError: Postfix ++ operator applied to val
ue that is not a reference.. | |
| 17 PASS (true ? x : y)++ threw exception ReferenceError: Postfix ++ operator applie
d to value that is not a reference.. | |
| 18 PASS x++++ threw exception SyntaxError: Unexpected token '++'. | |
| 19 PASS x is 0 | |
| 20 PASS y is 0 | |
| 21 PASS successfullyParsed is true | |
| 22 | |
| 23 TEST COMPLETE | |
| 24 | |
| OLD | NEW |