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
/
for-of-iterate-array-values.js
blob
67e5b47cc19fa79de2885c0242a87255aa49f021
1
function foo() {
2
var array = [];
3
for (var i = 0; i < 25000; i++)
4
array.push(i);
5
6
var result = 0;
7
for (var i of array)
8
result += i;
9
10
return result;
11
}
12
13
var result = foo() + foo();
14
if (result != 624975000)
15
throw "Bad result: " + result;
16