1 This test checks whether various forms of assignment expression are allowed.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS window.x = 2; x is 2
8 PASS window["x"] = 3; x is 3
10 PASS (window.x) = 5; x is 5
11 PASS (window["x"]) = 6; x is 6
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: Invalid left-hand side in assignment.
17 PASS (true ? x : y) = "FAIL"; threw exception ReferenceError: Invalid left-hand side in assignment.
18 PASS x++ = "FAIL"; threw exception ReferenceError: Invalid left-hand side in assignment.
19 PASS successfullyParsed is true