blob: 36e5a29280c81a2f45b7de8be15717a4acc2aa15 [file] [log] [blame]
var object = {};
var array = [];
(function() {
var result = 0;
for (var i = 0; i < 1000000; ++i) {
var value1 = (i & 1) ? array : object;
var value2 = (i & 1) ? Map : Set;
result += (typeof value1 == "object");
result += (typeof value2 == "object") << 1;
}
if (result != 1000000)
throw "Error: bad result: " + result;
})();