blob: 032b801d00a0af384e1325fe8d86492ea8b1b21a [file] [log] [blame]
/* Resolve 'arguments' and the name of the function itself in the presence of such local variables. */
function f() {
return typeof arguments;
function arguments() {
return 7;
}
}
assertEq(f(), "function");
function g() {
var arguments = 0;
return typeof arguments;
}
assertEq(g(), "number");
function h() {
return typeof h;
function h() {
return 7;
}
}
assertEq(h(), "function");
function i() {
return typeof i;
var i;
}
assertEq(i(), "undefined");
function j() {
return typeof j;
}
assertEq(j(), "function");