Debian Codegraph @

js/src/jit-test/tests/basic/testTypeofHole.js

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