bug470143.js (229B)
1 // Test that getname caches correctly handle typeof for missing names. 2 function f() { for (i = 0; i < 2000; ++i) { var k = typeof nosuchvar; } return k; } 3 4 assertEq(f(), "undefined"); 5 this.nosuchvar = 5; 6 assertEq(f(), "number");