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