summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1303015.js
blob: 021db0568d6a65712addc8ee2ab915d5ea6e1ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| slow

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