summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/basic/testBug604210.js
blob: 3f333ec540d9f1213313b091948e227e8fb9b540 (plain)
1
2
3
4
5
6
7
8
9
10
11
function f() {
    var msg = '';
    try {
        var x = undefined;
        print(x.foo);
    } catch (e) {
        msg = '' + e;
    }
    assertEq(msg, "TypeError: x is undefined");
}
f();