blob: 63c4b97a8f8c7eda05289e1533e473504a70eb16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
function loopWithUndefined1(t, val) {
var a = new Array(6);
for (var i = 0; i < 6; i++)
a[i] = (t > val);
return a;
}
loopWithUndefined1(5.0, 2); //compile version with val=int
function testLoopWithUndefined1() {
return loopWithUndefined1(5.0).join(","); //val=undefined
};
assertEq(testLoopWithUndefined1(), "false,false,false,false,false,false");
|