summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-findScripts-11-script2
blob: 7a170645e82c9b65503b450ac11d9231d4de32c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// -*- mode: js2 -*-
// Line numbers in this file are checked in Debugger-findScripts-11.js.

// line 3

var x = "";
function f() {
    x += "the map";                             // line 8
    return function g() {
        return "to me what you have stolen";    // line 10
    };
}

function h(x, y) {
    if (x == 0) return y+1;                     // line 15
    if (y == 0) return h(x-1, 1);
    return h(x-1, h(x, y-1));
}