projects
/
framework
/
web
/
webkit-efl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5ad2d2170cfef4481865e76084577d9dc53fbb8a
[framework/web/webkit-efl.git]
/
LayoutTests
/
fast
/
js
/
script-tests
/
resize-array-assign.js
1
description("Tests that assignments into arrays behave properly after the array is resized.")
2
3
function resize(X) {
4
X[9999] = 0;
5
return 1;
6
}
7
8
function getZerothEntry(X) {
9
return X[0];
10
}
11
12
var A = new Array();
13
A[0] = 0;
14
A[0] = resize(A);
15
16
shouldBe(getZerothEntry(A).toString(), "1");