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