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