Sign in
webkit
/
WebKit
/
b0d7f9b249dd6483d6c7bc4f13c440c0842b7127
/
.
/
JSTests
/
microbenchmarks
/
function-dot-apply.js
blob: ba598c99cf293258c9293c04113a0e240c8c9b2f [
file
] [
log
] [
blame
]
function
thingy
(
a
,
b
)
{
return
a
+
b
;
}
function
doCall
()
{
return
thingy
.
apply
(
void
0
,
arguments
);
}
function
foo
()
{
return
doCall
(
1
,
2
);
}
for
(
var
i
=
0
;
i
<
200000
;
++
i
)
{
var
result
=
foo
();
if
(
result
!=
3
)
throw
"Bad result: "
+
result
;
}