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
/
basic
/
testNewArrayCount2.js
1
function testNewArrayCount2() {
2
function count(a) { var n = 0; for (var p in a) n++; return n; }
3
var x = 0;
4
for (var i = 0; i < 10; ++i)
5
x = count(new Array(1,2,3));
6
return x;
7
}
8
assertEq(testNewArrayCount2(), 3);