| OLD | NEW |
| (Empty) |
| 1 PASS function f() { g()++; } f.toString() is 'function f() { g()++; }' | |
| 2 PASS function f() { g()--; } f.toString() is 'function f() { g()--; }' | |
| 3 PASS function f() { ++g(); } f.toString() is 'function f() { ++g(); }' | |
| 4 PASS function f() { --g(); } f.toString() is 'function f() { --g(); }' | |
| 5 PASS function f() { g() = 1; } f.toString() is 'function f() { g() = 1; }' | |
| 6 PASS function f() { g() += 1; } f.toString() is 'function f() { g() += 1; }' | |
| 7 FAIL g()++ should throw ReferenceError: Postfix ++ operator applied to value tha
t is not a reference.. Threw exception ReferenceError: Invalid left-hand side ex
pression in postfix operation. | |
| 8 FAIL g()-- should throw ReferenceError: Postfix -- operator applied to value tha
t is not a reference.. Threw exception ReferenceError: Invalid left-hand side ex
pression in postfix operation. | |
| 9 FAIL ++g() should throw ReferenceError: Prefix ++ operator applied to value that
is not a reference.. Threw exception ReferenceError: Invalid left-hand side exp
ression in prefix operation. | |
| 10 FAIL --g() should throw ReferenceError: Prefix -- operator applied to value that
is not a reference.. Threw exception ReferenceError: Invalid left-hand side exp
ression in prefix operation. | |
| 11 FAIL g() = 1 should throw ReferenceError: Left side of assignment is not a refer
ence.. Threw exception ReferenceError: Invalid left-hand side in assignment. | |
| 12 FAIL g() += 1 should throw ReferenceError: Left side of assignment is not a refe
rence.. Threw exception ReferenceError: Invalid left-hand side in assignment. | |
| 13 PASS successfullyParsed is true | |
| 14 | |
| 15 TEST COMPLETE | |
| 16 | |
| OLD | NEW |