Closed
Bug 604251
Opened 15 years ago
Closed 13 years ago
shadowing of 'arguments' in block scope resolves incorrectly
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 740446
People
(Reporter: dherman, Unassigned)
Details
Bug 530650 deals with shadowing 'arguments' with an inner function. A comment pointed out that there are issues with block-scoped shadowing as well.
A couple examples:
js> (function() { try { throw ["inner"] } catch (arguments) { return arguments[0] } })("outer")
"outer"
js> (function() { let (arguments = ["inner"]) { return arguments[0] } })("outer")
"outer"
I'll attach test cases.
Dave
Comment 1•13 years ago
|
||
With great unhackage comes great duping.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•