Closed Bug 1361143 Opened 4 years ago Closed 4 years ago
Missing expression statement restriction for "async function"
No description provided.
Created test262 PR for tests at https://github.com/tc39/test262/pull/1017
We only needed to move the syntax check from Parser::consequentOrAlternative() to Parser::statement(). And while I was there, I've also removed the check for "let" in strict or js1.7 mode, because strict-mode is also handled in Parser::checkLabelOrIdentifierReference() and if we care about js1.7 error messages, the js1.7 version check should also be moved Parser::checkLabelOrIdentifierReference().
Attachment #8863879 - Flags: review?(shu)
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/61ea278ec204 Enforce lookahead restriction for "async function" in expression statements. r=shu
You need to log in before you can comment on or make changes to this bug.