Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / regress / script-tests / direct-arguments-getbyval.js
blob6014c9137d7be8c80315579c1421fc46ffa6c0e1
1 function bar()
3 var result = 0;
4 for (var i = 0; i < arguments.length; ++i)
5 result += arguments[i];
6 return result;
9 var result = 0;
10 for (var i = 0; i < 10000; ++i)
11 result += bar(i, i + 1, i + 2, i + 3);
13 if (result != 200040000)
14 throw "Bad result: " + result;