Closed Bug 604251 Opened 15 years ago Closed 13 years ago

shadowing of 'arguments' in block scope resolves incorrectly

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

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
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.