summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1664007.js
blob: de5d8d1233d1a0a7e9782340ebfb832ec259d6ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function f(depth) {
    function Obj() {
        this.prop = null;
        this.prop = this;
    }
    var o = new Obj();
    assertEq(o.prop, o);
    if (depth < 1000) {
        f(depth + 1);
    }
}
f(0);