blob: 0d83e6611d3c77cb9fec022e8f5314d0553f7467 [file] [log] [blame]
function foo(a, b) {
return a === b;
}
function test(actual, expected) {
if (actual !== expected)
throw new Error("bad result: " + actual);
}
for (var i = 0; i < 10000000; ++i) {
test(foo(true, null), false);
test(foo(true, false), false);
test(foo(true, true), true);
test(foo(5, "hello"), false);
test(foo(void 0, new Object()), false);
}