Closed Bug 519295 Opened 15 years ago Closed 15 years ago

Detection of duplicate argument names with destructuring formals inconsistent

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 499524

People

(Reporter: jimb, Unassigned)

Details

Hardly earth-shaking, but not classy either (can we have a new priority for that?): js> function f(x,[x]){} typein:1: SyntaxError: duplicate argument is mixed with destructuring pattern: typein:1: function f(x,[x]){} typein:1: ...............^ js> function f([x],x){} js>
Fixed by fix for bug 499524.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.