diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 13:34:41 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:14 -0400 |
commit | f319f49a5280a7ba37cb551a7236505e496ae34a (patch) | |
tree | 6992d5f1e1522f1953169b1b84f193c081e2d8e9 /js/src/frontend/Parser.h | |
parent | dcb43bda93f1f2cbe3da5ba1b7d3f783f1c8ad1c (diff) | |
download | UXP-f319f49a5280a7ba37cb551a7236505e496ae34a.tar UXP-f319f49a5280a7ba37cb551a7236505e496ae34a.tar.gz UXP-f319f49a5280a7ba37cb551a7236505e496ae34a.tar.lz UXP-f319f49a5280a7ba37cb551a7236505e496ae34a.tar.xz UXP-f319f49a5280a7ba37cb551a7236505e496ae34a.zip |
1317153 - Provide better error message when errornous syntax possibly match "await SOMETHING" outside async function.
Diffstat (limited to 'js/src/frontend/Parser.h')
-rw-r--r-- | js/src/frontend/Parser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h index 156a1c1b0..41abb6d76 100644 --- a/js/src/frontend/Parser.h +++ b/js/src/frontend/Parser.h @@ -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, |