From kde-commits Sat Feb 07 19:14:07 2009 From: Maks Orlovich Date: Sat, 07 Feb 2009 19:14:07 +0000 To: kde-commits Subject: tests/khtmltests/regression/tests/js Message-Id: <1234034047.985023.14848.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123403407006936 SVN commit 922909 by orlovich: Regression test for #180605 CCBUG:180605 M +5 -0 Array.js --- trunk/tests/khtmltests/regression/tests/js/Array.js #922908:922909 @@ -239,3 +239,8 @@ return b - a; } numbers2.sort(compareFn2); + +// Sparse arrays [0] access bug --- test for non-crashing actually +A = []; +A[20000] = 42; +shouldBe('A[0]', 'undefined');