blob: 093761b1f679f07b76d27f9a06ba3ad4b19d9add [file] [log] [blame]
function foo(a, b) {
return a == b;
}
noInline(foo);
var data = [
[5, 6.5, false],
["foo", "bar", false],
[true, false, false],
["42", 42, true],
[1.2, 1.2, true]
];
for (var i = 0; i < 100000; ++i) {
var test = data[i % data.length];
var result = foo(test[0], test[1]);
if (result != test[2])
throw "Error: bad result for " + test + ": " + result;
}