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
/
direct-arguments-getbyval.js
blob
6014c9137d7be8c80315579c1421fc46ffa6c0e1
1
function
bar
()
2
{
3
var
result
=
0
;
4
for
(
var
i
=
0
;
i
<
arguments
.
length
; ++
i
)
5
result
+=
arguments
[
i
];
6
return
result
;
7
}
8
9
var
result
=
0
;
10
for
(
var
i
=
0
;
i
<
10000
; ++
i
)
11
result
+=
bar
(
i
,
i
+
1
,
i
+
2
,
i
+
3
);
12
13
if
(
result
!=
200040000
)
14
throw
"Bad result: "
+
result
;