projects
/
apple
/
javascriptcore.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git]
/
tests
/
stress
/
array-pop-int32.js
1
function
foo
(
array
) {
2
return
[
array
.
pop
(),
array
.
pop
(),
array
.
pop
(),
array
.
pop
()];
3
}
4
5
noInline
(
foo
);
6
7
for
(
var
i
=
0
;
i
<
100000
; ++
i
) {
8
var
result
=
foo
([
1
,
2
,
3
]);
9
if
(
result
.
toString
() !=
"3,2,1,"
)
10
throw
"Error: bad result: "
+
result
;
11
}