mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +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: 7d420bbd3d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3324
1 changed files with 4 additions and 4 deletions
|
@ -4632,8 +4632,8 @@ NonnullRefPtr<ImportStatement const> Parser::parse_import_statement(Program& pro
|
||||||
{
|
{
|
||||||
// We use the extended syntax which adds:
|
// We use the extended syntax which adds:
|
||||||
// ImportDeclaration:
|
// ImportDeclaration:
|
||||||
// import ImportClause FromClause [no LineTerminator here] WithClause;
|
// import ImportClause FromClause WithClause[opt] ;
|
||||||
// import ModuleSpecifier [no LineTerminator here] WithClause;
|
// import ModuleSpecifier WithClause[opt] ;
|
||||||
// From: https://tc39.es/proposal-import-attributes/#prod-ImportDeclaration
|
// From: https://tc39.es/proposal-import-attributes/#prod-ImportDeclaration
|
||||||
|
|
||||||
auto rule_start = push_start();
|
auto rule_start = push_start();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue