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
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
js
/
regress
/
script-tests
/
aliased-arguments-getbyval.js
blob
0964ccc2b63b6ebf3ffed1b28a098399e2c46cc9
1
function bar()
2
{
3
var args = arguments;
4
var result = 0;
5
for (var i = 0; i < args.length; ++i)
6
result += args[i];
7
return result;
8
}
9
10
var result = 0;
11
for (var i = 0; i < 10000; ++i)
12
result += bar(i, i + 1, i + 2, i + 3);
13
14
if (result != 200040000)
15
throw "Bad result: " + result;