blob: 51fea9c224f188c8ae79f506fb4817f5427585d8 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
var object = {};
var func = function() { };
var func2 = function() { return 42; };
(function() {
var result = 0;
for (var i = 0; i < 1000000; ++i) {
var value1 = (i & 1) ? func : func2;
var value2 = (i & 1) ? object : "hello";
result += (typeof value1 == "function");
result += (typeof value2 == "function") << 1;
}
if (result != 1000000)
throw "Error: bad result: " + result;
})();