blob: 9bb87fdc9e603e6ebc74c4ccd6686cffed66a54e [file] [log] [blame]
var object = {};
(function() {
var result = 0;
for (var i = 0; i < 1000000; ++i) {
var value1 = (i & 1) ? null : object;
var value2 = (i & 1) ? 42 : "hello";
result += (typeof value1 == "object");
result += (typeof value2 == "object") << 1;
}
if (result != 1000000)
throw "Error: bad result: " + result;
})();