Sign in
webkit
/
WebKit
/
6ddc9d48eb4dde936b8551b5167248cba0f85d9c
/
.
/
JSTests
/
microbenchmarks
/
string-sub.js
blob: 9bb8dd60942dc085ef9769f6e7da657cf0452820 [
file
] [
log
] [
blame
]
//@ runNoFTL
function
foo
(
a
,
b
)
{
return
a
-
b
;
}
var
result
=
0
;
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
result
+=
foo
(
"42"
,
i
);
if
(
result
!=
-
499957500000
)
throw
"Bad result: "
+
result
;