repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
js
/
regress
/
script-tests
/
new-array-buffer-push.js
blob
3ed3e94610a4da598dbe643a8d76a94cd1438aa0
1
function
foo
() {
2
return
[[
1
,
2
,
3
], [
5
,
6
,
6
]];
3
}
4
5
function
bar
() {
6
return
[
"foo"
,
"bar"
];
7
}
8
9
function
baz
() {
10
return
[
foo
(),
bar
(),
foo
(),
bar
()];
11
}
12
13
function
thingy
() {
14
var
result
= [];
15
for
(
var
i
=
0
;
i
<
50000
; ++
i
)
16
result
.
push
(
baz
());
17
return
result
;
18
}
19
20
var
size
=
thingy
().
length
;
21
if
(
size
!=
50000
)
22
throw
"Error: bad size: "
+
size
;