blob: 7eab7d55c950ac82541688c58a16c5cf1cbe8d35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function testNullCallee() {
try {
function f() {
var x = new Array(5);
for (var i = 0; i < 5; i++)
x[i] = a[i].toString();
return x.join(',');
}
f([[1],[2],[3],[4],[5]]);
f([null, null, null, null, null]);
} catch (e) {
return true;
}
return false;
}
assertEq(testNullCallee(), true);
|