blob: b71ac0c82f1862c1226b0a9c5d9cae88ef046b9f [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(v) {
return !v;
}
noInline(foo);
var array = ["foo", 42, null, {}, true, false];
var expected = [false, false, true, false, false, true];
for (var i = 0; i < 200000; ++i) {
var result = foo(array[i % array.length]);
if (result !== expected[i % array.length])
throw "Error: bad result at " + i + ": " + result;
}