[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / microbenchmarks / for-in-on-object-with-lazily-materialized-properties.js
1 function foo(o) {
2     var count = 0;
3     for (var p in o) {
4         if (o[p])
5             count ++;
6     }
7     return count;
8 }
9 noInline(foo);
10
11 var total = 0;
12 for (let j = 0; j < 100000; ++j)
13     total += foo(new Error);
14