diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 06:22:55 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 06:22:55 +0200 |
commit | 7333618581b018ca73c3482e2d5547765f6c3a1d (patch) | |
tree | 7c93bd9860e45c2c4c43310909a58d27703c21ae /js/src/frontend/Parser.h | |
parent | 96899aa847ab7495e3b7baaa413cf50a5eaaffff (diff) | |
download | UXP-7333618581b018ca73c3482e2d5547765f6c3a1d.tar UXP-7333618581b018ca73c3482e2d5547765f6c3a1d.tar.gz UXP-7333618581b018ca73c3482e2d5547765f6c3a1d.tar.lz UXP-7333618581b018ca73c3482e2d5547765f6c3a1d.tar.xz UXP-7333618581b018ca73c3482e2d5547765f6c3a1d.zip |
Move the Parser::checkFunctionDefinition call into its callers.
Diffstat (limited to 'js/src/frontend/Parser.h')
-rw-r--r-- | js/src/frontend/Parser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h index 3bfb4ae31..dc9c16adb 100644 --- a/js/src/frontend/Parser.h +++ b/js/src/frontend/Parser.h @@ -1262,7 +1262,8 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter Node functionDefinition(uint32_t preludeStart, Node pn, InHandling inHandling, YieldHandling yieldHandling, HandleAtom name, FunctionSyntaxKind kind, - GeneratorKind generatorKind, FunctionAsyncKind asyncKind); + GeneratorKind generatorKind, FunctionAsyncKind asyncKind, + bool tryAnnexB = false); // Parse a function body. Pass StatementListBody if the body is a list of // statements; pass ExpressionBody if the body is a single expression. @@ -1348,7 +1349,7 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter Node newDotGeneratorName(); bool declareDotGeneratorName(); - bool checkFunctionDefinition(HandleAtom funAtom, Node pn, FunctionSyntaxKind kind, + bool checkFunctionDefinition(HandlePropertyName funName, Node pn, GeneratorKind generatorKind, bool* tryAnnexB); bool skipLazyInnerFunction(Node pn, uint32_t preludeStart, FunctionSyntaxKind kind, bool tryAnnexB); |