]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/flatten-oversize-dictionary-object.js
d912b2f9024e2027891f5992808258c399529ce1
1 var foo = function(o
) {
8 var letters
= ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
11 for (var i
= 0; i
< letters
.length
; ++i
) {
12 for (var j
= 0; j
< letters
.length
; ++j
) {
13 for (var k
= 0; k
< letters
.length
; ++k
) {
14 var property
= letters
[i
] + letters
[j
] + letters
[k
];
20 var keys
= Object
.keys(o
);
22 for (var i
= keys
.length
- 1; i
>= keys
.length
- 8000; i
--) {
27 var iVal
= letters
.indexOf("b");
29 for (var i
= 0; i
< niters
; ++i
) {
33 if (sum
!= iVal
* niters
)
34 throw new Error("incorrect result: " + sum
);