Closed
Bug 1355860
Opened 7 years ago
Closed 7 years ago
Missing SyntaxError for arrow rest-parameter named "await" in async function context
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
DUPLICATE
of bug 1353691
Tracking | Status | |
---|---|---|
firefox55 | --- | affected |
People
(Reporter: anba, Assigned: anba)
References
Details
Test case: --- async function f() { (...await) => {}; } --- Expected: Throws SyntaxError Actual: No SyntaxError thrown "await" only matches BindingIdentifier when [Await] is not present. https://tc39.github.io/ecma262/#prod-CoverParenthesizedExpressionAndArrowParameterList https://tc39.github.io/ecma262/#prod-BindingIdentifier
Assignee | ||
Comment 1•7 years ago
|
||
This is basically the same issue as bug 1353691: If we set [Await] when parsing the arrow parameters, we'd throw a SyntaxError.
Depends on: 1353691
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Assignee | ||
Updated•7 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•