Details
-
Bug
-
Resolution: Fixed
-
P4
-
None
-
None
-
b89
-
Verified
Description
function x() {
arguments("a", "b", "c");
function arguments(x, y, z) {
print(arguments)
}
}
x()
This is expected to print "[object Arguments]" - a function doesn't define its own name as a symbol in its own environment record (ES 5.1, section 10.5), therefore "arguments" in function "arguments" has to refer to the "arguments" object.
arguments("a", "b", "c");
function arguments(x, y, z) {
print(arguments)
}
}
x()
This is expected to print "[object Arguments]" - a function doesn't define its own name as a symbol in its own environment record (ES 5.1, section 10.5), therefore "arguments" in function "arguments" has to refer to the "arguments" object.