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
/
method-on-number.js
blob
60d3ccb17685e3a503fe7cfb15519ba62bce57c6
1
function foo(a) {
2
var result = 0;
3
for (var i = 0 ; i < 500000; ++i)
4
result += a.valueOf();
5
return result;
6
}
7
8
var result = foo(5);
9
10
if (result != 2500000)
11
throw "Bad result: " + result;