mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS: Parse dynamic import calls 'import()' and 'import.meta'
For now both just throw when executing but this can be implemented when modules are implemented :^).
This commit is contained in:
parent
73eb29dabe
commit
045a42cf35
Notes:
sideshowbarker
2024-07-17 23:18:09 +09:00
Author: https://github.com/davidot
Commit: 045a42cf35
Pull-request: https://github.com/SerenityOS/serenity/pull/11088
Issue: https://github.com/SerenityOS/serenity/issues/11078
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
4 changed files with 125 additions and 6 deletions
|
@ -122,6 +122,8 @@ public:
|
|||
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();
|
||||
RefPtr<MetaProperty> try_parse_import_meta_expression();
|
||||
NonnullRefPtr<ImportCall> parse_import_call();
|
||||
|
||||
Vector<CallExpression::Argument> parse_arguments();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue