repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
js
/
regress
/
script-tests
/
string-sub.js
blob
ba7b247611118c6e01fe86d8af34e21b05323fe6
1
function
foo
(
a
,
b
) {
2
return
a
-
b
;
3
}
4
5
var
result
=
0
;
6
for
(
var
i
=
0
;
i
<
1000000
; ++
i
)
7
result
+=
foo
(
"42"
,
i
);
8
9
if
(
result
!= -
499957500000
)
10
throw
"Bad result: "
+
result
;