summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug623859.js
blob: e712f401033f36512fab7ac6305a78832b6deb05 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| allow-oom; allow-unhandlable-oom
var size = 1000000;
var a = [];
for (var i = 0; i < size; ++i) {
    a[i] = null;
}
gcparam("maxBytes", gcparam("gcBytes") + 4*1024);
for (var i = 0; i < size; ++i) {
    a[i] = [];
}