summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug470143.js
blob: 0b63d4f0a4ff12c12bf193bdfb7340da325d80b9 (plain)
1
2
3
4
5
6
// Test that getname caches correctly handle typeof for missing names.
function f() { for (i = 0; i < 2000; ++i) { var k = typeof nosuchvar; } return k; }

assertEq(f(), "undefined");
this.nosuchvar = 5;
assertEq(f(), "number");