Closed
Bug 1353692
Opened 7 years ago
Closed 7 years ago
Don't allow function closure syntax for async functions
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
4.62 KB,
patch
|
arai
:
review+
|
Details | Diff | Splinter Review |
Test case: --- void async function()0; --- Expected: Throws SyntaxError Actual: No SyntaxError
Updated•7 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 1•7 years ago
|
||
Moved the check into the |if (kind != Arrow) { ... }| block, so we don't need to special case async arrow-functions. Also removed the PropertyType::Constructor/PropertyType::DerivedConstructor checks from Parser::classDefinition() because Parser::propertyName() never sets |propType| to PropertyType::Constructor/PropertyType::DerivedConstructor.
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Attachment #8855392 -
Flags: review?(arai.unmht)
Comment 2•7 years ago
|
||
Comment on attachment 8855392 [details] [diff] [review] bug1353692.patch Review of attachment 8855392 [details] [diff] [review]: ----------------------------------------------------------------- thanks!
Attachment #8855392 -
Flags: review?(arai.unmht) → review+
Assignee | ||
Comment 3•7 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=49781ea1c0a8f060b4e0ee79304bf64eafea159c
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/45d48a852a0c Don't allow function expression closure syntax for async functions. r=arai
Keywords: checkin-needed
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/45d48a852a0c
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment 6•7 years ago
|
||
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Expression_closures#Compatibility_notes https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function#Firefox-specific_notes
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•