| OLD | NEW |
| (Empty) |
| 1 This test checks whether various forms of assignment expression are allowed. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS x = 1; x is 1 | |
| 7 PASS window.x = 2; x is 2 | |
| 8 PASS window["x"] = 3; x is 3 | |
| 9 PASS (x) = 4; x is 4 | |
| 10 PASS (window.x) = 5; x is 5 | |
| 11 PASS (window["x"]) = 6; x is 6 | |
| 12 PASS y, x = 7; x is 7 | |
| 13 PASS ((x)) = 8; x is 8 | |
| 14 PASS ((window.x)) = 9; x is 9 | |
| 15 PASS ((window["x"])) = 10; x is 10 | |
| 16 PASS (y, x) = "FAIL"; threw exception ReferenceError: Left side of assignment is
not a reference.. | |
| 17 PASS (true ? x : y) = "FAIL"; threw exception ReferenceError: Left side of assig
nment is not a reference.. | |
| 18 PASS x++ = "FAIL"; threw exception SyntaxError: Unexpected token '='. | |
| 19 PASS successfullyParsed is true | |
| 20 | |
| 21 TEST COMPLETE | |
| 22 | |
| OLD | NEW |