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
/
allocate-big-object.js
blob
86c6d5ab177e44234435791073c3a1a50997b890
1
function foo() {
2
var o = {};
3
o.a = 1;
4
o.b = 2;
5
o.c = 3;
6
o.d = 4;
7
o.e = 5;
8
o.f = 6;
9
o.g = 7;
10
return o;
11
}
12
13
var result = 0;
14
for (var i = 0; i < 100000; ++i)
15
result += foo().a;
16
17
if (result != 100000)
18
throw "Error, bad result: " + result;
19