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
/
int-or-other-sub.js
blob
b671a25b53f15ea3a11c2765ccefe6c79907d3f8
1
var p = {f:true};
2
3
function foo(a, b) {
4
var c;
5
if (p.f)
6
c = b;
7
return a - c;
8
}
9
10
var result = 0;
11
for (var i = 0; i < 1000000; ++i)
12
result += foo(i, i + 1);
13
14
if (result != -1000000)
15
throw "Bad result: " + result;
16