blob: 29eaea6c228b3aff760c6ada92bd9a893547ae70 [file] [log] [blame]
fpizlo@apple.comd4335282015-04-30 17:36:26 +00001var object = {};
2(function() {
3 var result = 0;
4 for (var i = 0; i < 1000000; ++i) {
5 var value1 = (i & 1) ? true : false;
6 var value2 = (i & 1) ? "hello" : object;
7 result += (typeof value1 == "boolean");
8 result += (typeof value2 == "boolean") << 1;
9 }
10 if (result != 1000000)
11 throw "Error: bad result: " + result;
12})();