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