[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / microbenchmarks / put-by-val-with-symbol-replace-and-transition.js
1 (function() {
2     var f = Symbol(), g = Symbol();
3     var o;
4     var n = 1000000;
5     for (var i = 0; i < n; ++i) {
6         if (i & 1)
7             o = {[f]: 1};
8         else
9             o = {[f]: 1, [g]: 2};
10         o[g] = i;
11     }
12     if (o[g] != n - 1)
13         throw "Error: bad value of o.g: " + o[g];
14 })();