summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1215600.js
blob: abe433a8b4a7806f332b97a8fd37fc08e89d4f05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// |jit-test| slow

lfcode = Array()
lfcode.push("5")
lfcode.push("")
lfcode.push("3")
lfcode.push("oomTest(()=>{gc()})")
for (let i = 0; i < 10; i++) {
    file = lfcode.shift()
    loadFile(file)
}
function loadFile(lfVarx) {
    try {
        if (lfVarx.length != 1)
            switch (lfRunTypeId) {
                case 3:
                    function newFunc(x) { return Function(x)(); }
                    newFunc(lfVarx)
                case 5:
                    for (lfLocal in this);
            }
        isNaN();
        lfRunTypeId = parseInt(lfVarx);
    } catch (lfVare) {}
}