Index: test/webkit/fast/js/object-extra-comma-expected.txt |
diff --git a/test/webkit/arguments-bad-index-expected.txt b/test/webkit/fast/js/object-extra-comma-expected.txt |
similarity index 77% |
copy from test/webkit/arguments-bad-index-expected.txt |
copy to test/webkit/fast/js/object-extra-comma-expected.txt |
index 929537823ba09f0a0dc53891aea0bf23fe9014e8..22511af8334249547ee46598f8c9ed2cada1ae40 100644 |
--- a/test/webkit/arguments-bad-index-expected.txt |
+++ b/test/webkit/fast/js/object-extra-comma-expected.txt |
@@ -21,15 +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 test checks whether arguments crashes when passed a bad index. |
+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 indexArguments(1, "a") is "a" |
-PASS indexArguments("1 ", "a") is undefined |
-PASS indexArguments(0xDEADBEEF) is undefined |
-PASS indexArguments(0xFFFFFFFF) is undefined |
+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 |