summaryrefslogtreecommitdiff
path: root/js/src/frontend/Parser.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 04:22:27 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 04:22:27 +0200
commitc68a2114e4139647ad7af2b4d0a940acf20a5938 (patch)
tree33a9beed5f0769d3e50a1d382f65927d26707fcb /js/src/frontend/Parser.h
parent36be8f8da4078791716c44db35c1666fb1f964b5 (diff)
downloaduxp-c68a2114e4139647ad7af2b4d0a940acf20a5938.tar.gz
Move part of Parser::functionDefinition into callers.
Diffstat (limited to 'js/src/frontend/Parser.h')
-rw-r--r--js/src/frontend/Parser.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h
index c8914a2d78..3bfb4ae311 100644
--- a/js/src/frontend/Parser.h
+++ b/js/src/frontend/Parser.h
@@ -1259,11 +1259,10 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
bool functionArguments(YieldHandling yieldHandling, FunctionSyntaxKind kind,
Node funcpn);
- Node functionDefinition(uint32_t preludeStart,
+ Node functionDefinition(uint32_t preludeStart, Node pn,
InHandling inHandling, YieldHandling yieldHandling, HandleAtom name,
FunctionSyntaxKind kind,
- GeneratorKind generatorKind, FunctionAsyncKind asyncKind,
- InvokedPrediction invoked = PredictUninvoked);
+ GeneratorKind generatorKind, FunctionAsyncKind asyncKind);
// Parse a function body. Pass StatementListBody if the body is a list of
// statements; pass ExpressionBody if the body is a single expression.