blob: 9538dd79cfe1946bdf0d1d568ce3394fef1519a7 (
plain)
1
2
3
4
5
6
7
8
|
function testTypeofHole() {
var a = new Array(6);
a[5] = 3;
for (var i = 0; i < 6; ++i)
a[i] = typeof a[i];
return a.join(",");
}
assertEq(testTypeofHole(), "undefined,undefined,undefined,undefined,undefined,number");
|