LibJS: Parse async arrow functions

This commit is contained in:
davidot 2021-11-15 00:47:16 +01:00 committed by Linus Groh
commit de46a2cff1
Notes: sideshowbarker 2024-07-18 00:53:25 +09:00
3 changed files with 155 additions and 25 deletions

View file

@ -113,7 +113,7 @@ public:
NonnullRefPtr<ImportStatement> parse_import_statement(Program& program);
NonnullRefPtr<ExportStatement> parse_export_statement(Program& program);
RefPtr<FunctionExpression> try_parse_arrow_function_expression(bool expect_parens);
RefPtr<FunctionExpression> try_parse_arrow_function_expression(bool expect_parens, bool is_async = false);
RefPtr<Statement> try_parse_labelled_statement(AllowLabelledFunction allow_function);
RefPtr<MetaProperty> try_parse_new_target_expression();