repo.or.cz
/
qtwebkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Update ReadMe.md
[qtwebkit.git]
/
JSTests
/
microbenchmarks
/
sparse-conditional.js
blob
4d3e47f5d087dad3a5ed1e6f9cd1dbe65de3174d
1
function foo() {
2
var result = 0;
3
for (var i = 0; i < 1; ++i)
4
result++;
5
return result;
6
}
7
8
var result = 0;
9
for (var i = 0; i < 200000; ++i)
10
result += foo();
11
12
if (result != 200000)
13
throw "Bad result: " + result;
14
15
16