OLD | NEW |
| (Empty) |
1 This test checks some object construction cases, including 5939: final comma in
javascript object prevents parsing. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS var foo = { 'bar' : 'YES' }; foo.bar is 'YES' | |
7 PASS var foo = { 'bar' : 'YES', }; foo.bar is 'YES' | |
8 PASS var foo = { 'bar' : 'YES' , }; foo.bar is 'YES' | |
9 PASS var foo = { , 'bar' : 'YES' }; foo.bar threw exception SyntaxError: Unexpec
ted token ','. | |
10 PASS var foo = { 'bar' : 'YES',, }; foo.bar threw exception SyntaxError: Unexpec
ted token ','. | |
11 PASS successfullyParsed is true | |
12 | |
13 TEST COMPLETE | |
14 | |
OLD | NEW |