Sign in
webkit
/
WebKit
/
9f8388ebdf099a98ce75d93c131e5941dc4da269
/
.
/
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
;
}