blob: 44bfd4adcb39180a47a9cf32f039c3cc0790fa35 [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: Unexpected token ','. Expected a property name..
PASS var foo = { 'bar' : 'YES',, }; foo.bar threw exception SyntaxError: Unexpected token ','. Expected a property name..
PASS successfullyParsed is true
TEST COMPLETE