summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1303015.js
blob: 70d9f210272b083adf4eee45c46c0122bb807921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if (!('oomTest' in this))
    quit();

var x = ``.split();
oomTest(function() {
    var lfGlobal = newGlobal();
    for (lfLocal in this) {
        if (!(lfLocal in lfGlobal)) {
                lfGlobal[lfLocal] = this[lfLocal];
        }
    }
});