mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibJS: Require initializer for 'const' variable declaration
This commit is contained in:
parent
812e3ecedd
commit
563d3c8055
Notes:
sideshowbarker
2024-07-19 01:37:38 +09:00
Author: https://github.com/linusg
Commit: 563d3c8055
Pull-request: https://github.com/SerenityOS/serenity/pull/3877
3 changed files with 21 additions and 14 deletions
|
@ -66,7 +66,7 @@ public:
|
|||
NonnullRefPtr<BlockStatement> parse_block_statement();
|
||||
NonnullRefPtr<BlockStatement> parse_block_statement(bool& is_strict);
|
||||
NonnullRefPtr<ReturnStatement> parse_return_statement();
|
||||
NonnullRefPtr<VariableDeclaration> parse_variable_declaration(bool with_semicolon = true);
|
||||
NonnullRefPtr<VariableDeclaration> parse_variable_declaration(bool for_loop_variable_declaration = false);
|
||||
NonnullRefPtr<Statement> parse_for_statement();
|
||||
NonnullRefPtr<Statement> parse_for_in_of_statement(NonnullRefPtr<ASTNode> lhs);
|
||||
NonnullRefPtr<IfStatement> parse_if_statement();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue