summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Parser.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 13:34:41 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:14 -0400
commitf319f49a5280a7ba37cb551a7236505e496ae34a (patch)
tree6992d5f1e1522f1953169b1b84f193c081e2d8e9 /js/src/frontend/Parser.h
parentdcb43bda93f1f2cbe3da5ba1b7d3f783f1c8ad1c (diff)
downloadUXP-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.h4
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,