blob: 9982090d8b33455257715f9644150950e219c21a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
window.tests.set('globalArrayArrayLiteral', (function() {
var garbage = [];
var garbageIndex = 0;
return {
description: "var foo = [[], ....]",
load: (N) => { garbage = new Array(N); },
unload: () => { garbage = []; garbageIndex = 0; },
makeGarbage: (N) => {
for (var i = 0; i < N; i++) {
garbage[garbageIndex++] = ['foo', 'bar', 'baz', 'baa'];
if (garbageIndex == garbage.length)
garbageIndex = 0;
}
}
};
})());
|