Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / regress / script-tests / new-array-buffer-push.js
blob3ed3e94610a4da598dbe643a8d76a94cd1438aa0
1 function foo() {
2 return [[1,2,3], [5,6,6]];
5 function bar() {
6 return ["foo", "bar"];
9 function baz() {
10 return [foo(), bar(), foo(), bar()];
13 function thingy() {
14 var result = [];
15 for (var i = 0; i < 50000; ++i)
16 result.push(baz());
17 return result;
20 var size = thingy().length;
21 if (size != 50000)
22 throw "Error: bad size: " + size;