summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/lexical-check-4.js
blob: 6812674e44f25774190599e9dae73671c64d8ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var caught = false;
try {
    (function() {
        let x = (function f(y) {
            if (y == 0) {
                x
                return
            }
            return f(y - 1)
        })(3)
    })()
} catch(e) {
    caught = true;
}
assertEq(caught, true);