mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +09:00
1317153 - Provide better error message when errornous syntax possibly match "await SOMETHING" outside async function.
This commit is contained in:
parent
bf35c6ba70
commit
02761b7fc2
4 changed files with 77 additions and 33 deletions
|
|
@ -1354,6 +1354,10 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
|
|||
bool finishFunction();
|
||||
bool leaveInnerFunction(ParseContext* outerpc);
|
||||
|
||||
bool matchOrInsertSemicolonHelper(TokenStream::Modifier modifier);
|
||||
bool matchOrInsertSemicolonAfterExpression();
|
||||
bool matchOrInsertSemicolonAfterNonExpression();
|
||||
|
||||
public:
|
||||
enum FunctionCallBehavior {
|
||||
PermitAssignmentToFunctionCalls,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue