summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/testBug952022.js
blob: 12f5d71f8dd66897f69a0adc5392b897ba2e980f (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
function g(f) {
    for (var j = 0; j < 9; ++j) {
        try {
            f()
        } catch (e) {}
    }
}
function h(code) {
    Function(code)();
}
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
g([]);
h("\
    m = (function(stdlib, foreign) { \
        \"use asm\";\
        var ff=foreign.ff;\
        function f(){\
            ff(0);\
        } \
        return f \
    })(this , { \
        ff: arguments.callee.caller\
    });\
    g(m , []);\
");
h("\
    m = undefined;\
    gc();\
")