]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/sparse_splice.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / sparse_splice.js
CommitLineData
ed1e77d3
A
1var myArray = Array();
2myArray[ 10000 ] = "a";
3myArray[ 10001 ] = "b";
4myArray[ 10002 ] = "c";
5
6// remove element at index 1001
7myArray.splice( 10001, 1 );
8
9if (myArray[10000] != "a")
10 throw "Splicing Error! start index changed";
11if (myArray[10001] != "c")
12 throw "Splicing Error! removed element not removed";