summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug885660.js
blob: f7fed17dc182cca1fb785c55b032ca2905491c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function ff(parsedTypeName, defaultContext) {
    var context = null;

    if (context === null)
        context = defaultContext;

    if (parsedTypeName.genericArguments !== null) {
        for (var i = 0; i < 0; i++) {}
    }

    var foo = parsedTypeName.type;
    assertEq(typeof context, "object");
    return foo;
}
function test() {
    var parsedTypeName = {genericArguments: null};
    for (var i=0; i<140; i++) {
        if (i > 100)
            parsedTypeName.x = {};
        ff(parsedTypeName, {});
    }
}
test();