blob: 983384ccd7ac932a626d54823009a8f27651878b [file] [log] [blame]
//@ runNoFTL
var array = [ "a", "b", "c", "d" ];
function foo(array, s) {
for (var i = 0; i < array.length; ++i) {
if (array[i] == s)
return true;
}
return false;
}
var result = 0;
for (var i = 0; i < 1000000; ++i)
result += foo(array, "d");
if (result != 1000000)
throw "Bad result: " + result;