VOOZH about

URL: https://bugzilla.mozilla.org/show_bug.cgi?id=1096378

⇱ 1096378 - Don't allow duplicate parameter names in concise method definitions


Closed Bug 1096378 Opened 11 years ago Closed 11 years ago

Don't allow duplicate parameter names in concise method definitions

Don't allow duplicate parameter names in concise method definitions
Core
JavaScript Engine
Trunk
All
All
defect
Not set
normal
Points:
---
RESOLVED FIXED
RESOLVED
FIXED
mozilla38
Iteration:
---
a11y-review
Accessibility Severity
Performance Impact
Size Estimate
Webcompat Priority
Webcompat Score
Tracking Status
firefox38 --- fixed
Tracking Status
firefox38
relnote-firefox
thunderbird_esr115
thunderbird_esr140
thunderbird_esr153
firefox-esr115
firefox-esr140
firefox-esr153
firefox152
firefox153
firefox154
---
QA Whiteboard:
---
Has STR:
---
Change Request:
---
Signature:
None
This bug is publicly visible.

 
Test case: --- ({m(a, a){}}) --- Expected: SyntaxError is thrown Actual: No SyntaxError Concise method definition parameters use the 'StrictFormalParameters' grammar production [1] which disallows duplicate parameter names [2]. [1] https://people.mozilla.org/~jorendorff/es6-draft.html#sec-method-definitions [2] https://people.mozilla.org/~jorendorff/es6-draft.html#sec-function-definitions-static-semantics-early-errors
Assignee

Comment 1

β€’
11 years ago
applied after the patch in bug 1096376 and bug 1096377. Already passed the try (same as bug 1096376): https://treeherder.mozilla.org/#/jobs?repo=try&revision=91855352a697
Attachment #8553309 - Flags: review?(jorendorff)
Attachment #8553309 - Flags: review?(jorendorff) β†’ review+
Assignee: nobody β†’ arai_a
Status: NEW β†’ RESOLVED
Closed: 11 years ago
status-firefox38: --- β†’ fixed
Flags: in-testsuite+
Resolution: --- β†’ FIXED
Target Milestone: --- β†’ mozilla38
You need to log in before you can comment on or make changes to this bug.