projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
pic
/
length_array.js
1
// length, string
2
3
var expected = "3,6,4,3,6,4,3,6,4,3,6,4,";
4
var actual = '';
5
6
function f() {
7
var ss = [ [1, 2, 3], [1, 2, 3, 4, 5, 6], [1, 2, 3, 4] ];
8
9
for (var i = 0; i < 12; ++i) {
10
actual += ss[i%3].length + ',';
11
}
12
}
13
14
f();
15
16
assertEq(actual, expected);