Sign in
webkit
/
WebKit
/
fff5469af9e21121a01bc52b64d66a2e93b51665
/
.
/
JSTests
/
stress
/
array-pop-double-hole.js
blob: 6782ea203e4fc97c3079af6a31b306b1ee32ad37 [
file
] [
log
] [
blame
]
function
foo
()
{
var
array
=
[
1.5
,
2
,
3.5
];
array
.
pop
();
array
[
3
]
=
4.5
;
return
array
;
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
100000
;
++
i
)
{
var
result
=
foo
();
if
(
result
.
toString
()
!=
"1.5,2,,4.5"
)
throw
"Error: bad result: "
+
result
;
}