blob: 35d77fbd3318f026a97df104df17753c97dec9e3 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function isArray(array)
{
return Array.isArray(array);
}
noInline(isArray);
let values = [
[ 0, false ],
[ [], true ],
[ {}, false ],
[ "Cappuccino", false ],
[ Symbol("Cocoa"), false ],
[ null, false ],
[ undefined, false ],
]
for (var i = 0; i < 1e4; ++i) {
for (let pair of values) {
if (isArray(pair[0]) != pair[1])
throw new Error(`bad value:${String(pair[1])}`);
}
}