summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug934789-2.js
blob: 5272d63e019793d65b1f01fa5cf6a5b2497c1a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
load(libdir + "asserts.js");
assertThrowsInstanceOf(
    function() {
        function foo() {}
        foo = null;
        (function bar(e) {
            try {
                (function() { e; });
                throw 1;
            } catch (e) {
                foo();
            }
        })();
    },
    TypeError);