mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibJS: Update the noted grammar for ImportDeclaration
This commit is contained in:
parent
263fd9b7c6
commit
7d420bbd3d
Notes:
github-actions[bot]
2025-01-21 13:59:55 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/7d420bbd3d8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3324
1 changed files with 4 additions and 4 deletions
|
@ -4631,10 +4631,10 @@ static DeprecatedFlyString default_string_value = "default";
|
|||
NonnullRefPtr<ImportStatement const> Parser::parse_import_statement(Program& program)
|
||||
{
|
||||
// We use the extended syntax which adds:
|
||||
// ImportDeclaration:
|
||||
// import ImportClause FromClause [no LineTerminator here] WithClause;
|
||||
// import ModuleSpecifier [no LineTerminator here] WithClause;
|
||||
// From: https://tc39.es/proposal-import-attributes/#prod-ImportDeclaration
|
||||
// ImportDeclaration:
|
||||
// import ImportClause FromClause WithClause[opt] ;
|
||||
// import ModuleSpecifier WithClause[opt] ;
|
||||
// From: https://tc39.es/proposal-import-attributes/#prod-ImportDeclaration
|
||||
|
||||
auto rule_start = push_start();
|
||||
if (program.type() != Program::Type::Module)
|
||||
|
|
Loading…
Add table
Reference in a new issue