summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug-826124.js
blob: 6efda93aafe9fafbafbc7a3212fc02bcef67d5b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var x = {};
function f() { y.prop; }
x.toStr = function () { f(); };
try {
    f();
} catch (e) { }
try {
    x.toStr();
} catch (e) { }
try {
    function f() { which = 2; }
    x.toStr();
} catch (e) { which = 1; }
assertEq(which, 2);