Update ReadMe.md
[qtwebkit.git] / JSTests / microbenchmarks / put-by-val-with-symbol-replace-and-transition.js
blobca6a23bb983702a3080569691d2cb1e9f0776f70
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;
12 if (o[g] != n - 1)
13 throw "Error: bad value of o.g: " + o[g];
14 })();