Sign in
webkit
/
WebKit
/
7d815df5a5eb5a0a67d72260d5639681d50d7f66
/
.
/
JSTests
/
microbenchmarks
/
method-on-number.js
blob: 50271c61f7aaceeee759c354e935f4f9c1cb265c [
file
] [
log
] [
blame
]
//@ runNoFTL
function
foo
(
a
)
{
var
result
=
0
;
for
(
var
i
=
0
;
i
<
500000
;
++
i
)
result
+=
a
.
valueOf
();
return
result
;
}
var
result
=
foo
(
5
);
if
(
result
!=
2500000
)
throw
"Bad result: "
+
result
;