summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug728187.js
blob: ecfb3dddd5320dd2e3fe759d7e98e0c2cafa401c (plain)
1
2
3
4
5
6
7
8
9
10
function f(x) {
    if (x.y()) {};
}
f({y: function() {}});
try {
    f(10);
    assertEq(0, 1);
} catch(e) {
    assertEq(e instanceof TypeError, true);
}