chromium/third_party/blink/web_tests/fast/js/regress/script-tests/new-array-buffer-push.js

function foo() {
    return [[1,2,3], [5,6,6]];
}

function bar() {
    return ["foo", "bar"];
}

function baz() {
    return [foo(), bar(), foo(), bar()];
}

function thingy() {
    var result = [];
    for (var i = 0; i < 50000; ++i)
        result.push(baz());
    return result;
}

var size = thingy().length;
if (size != 50000)
    throw "Error: bad size: " + size;