blob: ecfb3dddd5320dd2e3fe759d7e98e0c2cafa401c [file] [log] [blame]
function f(x) {
if (x.y()) {};
}
f({y: function() {}});
try {
f(10);
assertEq(0, 1);
} catch(e) {
assertEq(e instanceof TypeError, true);
}