Closed
Bug 1089632
Opened 9 years ago
Closed 9 years ago
Setter with a RestParameter should be a SyntaxError
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: jorendorff, Assigned: arai)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete, site-compat, Whiteboard: [DocArea=JS])
Attachments
(1 file)
7.56 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
Noticed by Waldo in bug 911142, comment 8. The grammar starts out like this: MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody } PropertySetParameterList : FormalParameter and it turns out FormalParameter and FunctionRestParameter are two disjoint bits of syntax. https://people.mozilla.org/~jorendorff/es6-draft.html#sec-method-definitions
Updated•9 years ago
|
Keywords: dev-doc-needed
Whiteboard: [DocArea=JS]
Comment 1•9 years ago
|
||
Doesn't that actually mean there has to be one single parameter and nothing else?
Assignee | ||
Comment 2•9 years ago
|
||
Green on try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e4a93d228b7e
Attachment #8548192 -
Flags: review?(jwalden+bmo)
Comment 3•9 years ago
|
||
Comment on attachment 8548192 [details] [diff] [review] Throw SyntaxError if RestParameter is used in setter. Review of attachment 8548192 [details] [diff] [review]: ----------------------------------------------------------------- Mm. This at least I can polish off quickly. Sorry I'm taking so long on some of your other patches. :-( Promise to get to them soon!
Attachment #8548192 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 4•9 years ago
|
||
Thank you for reviewing :D https://hg.mozilla.org/integration/mozilla-inbound/rev/6a59a5ee91b4
Comment 5•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6a59a5ee91b4
Assignee: nobody → arai_a
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Assignee | ||
Comment 6•9 years ago
|
||
Updated following documents: https://developer.mozilla.org/en-US/Firefox/Releases/38 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/set
Comment 8•9 years ago
|
||
https://developer.mozilla.org/en-US/Firefox/Releases/38/Site_Compatibility
Keywords: site-compat
You need to log in
before you can comment on or make changes to this bug.
Description
•