Sign in
nest-open-source
/
manifest_repos
/
chromium_src
/
1389d67935ffbffe8a70c1fa06867f6cf7ecf464
/
.
/
chromium
/
src
/
third_party
/
blink
/
web_tests
/
fast
/
js
/
regress
/
script-tests
/
string-sub.js
blob: ba7b247611118c6e01fe86d8af34e21b05323fe6 [
file
] [
log
] [
blame
]
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
;