Sign in
webkit
/
WebKit
/
18eafb7225658eb078fb4b435c7e6f4bc55edf7a
/
.
/
JSTests
/
stress
/
array-pop-int32.js
blob: 14075f343c8ab701aa8d8bdfa2b4d3c8e60c6176 [
file
] [
log
] [
blame
]
function
foo
(
array
)
{
return
[
array
.
pop
(),
array
.
pop
(),
array
.
pop
(),
array
.
pop
()];
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
100000
;
++
i
)
{
var
result
=
foo
([
1
,
2
,
3
]);
if
(
result
.
toString
()
!=
"3,2,1,"
)
throw
"Error: bad result: "
+
result
;
}