blob: 4d848133dfd9f1b66f93ef101dfa02f6df52443f [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(a) {
return typeof(a) == "function";
}
var array = ["string", 5, 6.5, foo, void(0), null, true, false, {f:42}, [1, 2, 3]];
var result = 0;
for (var i = 0; i < 100000; ++i) {
result *= 3;
result += foo(array[i % array.length]) | 0;
result |= 0;
}
if (result != -738097840)
throw "Bad result: " + result;