summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1271110.js
blob: b3b68a277e2b566be33506b0211868877c56ae11 (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
if (!('oomTest' in this))
    quit();

var x1 = [];
var x2 = [];
var x3 = [];
var x4 = [];
(function() {
    var gns = Object.getOwnPropertyNames(this);
    for (var i = 0; i < 49; ++i) {
        var gn = gns[i];
        var g = this[gn];
        if (typeof g == "function") {
            var hns = Object.getOwnPropertyNames(gn);
            for (var j = 0; j < hns.length; ++j) {
                x1.push("");
                x1.push("");
                x2.push("");
                x2.push("");
                x3.push("");
                x3.push("");
                x4.push("");
                x4.push("");
            }
        }
    }
})();
try {
    __proto__ = function(){};
} catch (e) {
    "" + e;
}
startgc(9222);
Function("\
    (function() {})();\
    oomTest(Debugger.Script);\
")();