blob: 0dcae57d42c05eba1c42a2996d2e301eb7488870 [file] [log] [blame]
This test checks some object construction cases, including 5939: final comma in javascript object prevents parsing.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS var foo = { 'bar' : 'YES' }; foo.bar is 'YES'
PASS var foo = { 'bar' : 'YES', }; foo.bar is 'YES'
PASS var foo = { 'bar' : 'YES' , }; foo.bar is 'YES'
PASS var foo = { , 'bar' : 'YES' }; foo.bar threw exception SyntaxError: Parse error.
PASS var foo = { 'bar' : 'YES',, }; foo.bar threw exception SyntaxError: Parse error.
PASS successfullyParsed is true
TEST COMPLETE