Index: test/webkit/fast/js/object-extra-comma-expected.txt |
diff --git a/test/webkit/array-constructor-host-call-expected.txt b/test/webkit/fast/js/object-extra-comma-expected.txt |
similarity index 77% |
copy from test/webkit/array-constructor-host-call-expected.txt |
copy to test/webkit/fast/js/object-extra-comma-expected.txt |
index aeefefbf09152f65c600438900dec2c9147ee89b..22511af8334249547ee46598f8c9ed2cada1ae40 100644 |
--- a/test/webkit/array-constructor-host-call-expected.txt |
+++ b/test/webkit/fast/js/object-extra-comma-expected.txt |
@@ -21,17 +21,16 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-This tests that array construction via a host call works. |
+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 array instanceof Array is true |
-PASS array.length is 100 |
-PASS array instanceof Array is true |
-PASS array.length is 100 |
-PASS array instanceof Array is true |
-PASS array.length is 100 |
+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 ,. |
+PASS var foo = { 'bar' : 'YES',, }; foo.bar threw exception SyntaxError: Unexpected token ,. |
PASS successfullyParsed is true |
TEST COMPLETE |