Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 1979f054c1d00df57e64b7bab055d0b38053a5ef..9b9f9fa359b6140b879434198d553f3293406d67 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -1668,8 +1668,7 @@ void Parser::RewriteCatchPattern(CatchInfo* catch_info, bool* ok) { |
DCHECK_NOT_NULL(catch_info->pattern); |
catch_info->name = ast_value_factory()->dot_catch_string(); |
} |
- catch_info->variable = catch_info->scope->DeclareLocal( |
- catch_info->name, VAR, kCreatedInitialized, NORMAL_VARIABLE); |
+ catch_info->variable = catch_info->scope->DeclareLocal(catch_info->name, VAR); |
if (catch_info->pattern != nullptr) { |
DeclarationDescriptor descriptor; |
descriptor.declaration_kind = DeclarationDescriptor::NORMAL; |
@@ -2950,8 +2949,7 @@ Block* Parser::BuildRejectPromiseOnException(Block* inner_block, bool* ok) { |
Scope* catch_scope = NewScope(CATCH_SCOPE); |
catch_scope->set_is_hidden(); |
Variable* catch_variable = |
- catch_scope->DeclareLocal(ast_value_factory()->dot_catch_string(), VAR, |
- kCreatedInitialized, NORMAL_VARIABLE); |
+ catch_scope->DeclareLocal(ast_value_factory()->dot_catch_string(), VAR); |
Block* catch_block = factory()->NewBlock(nullptr, 1, true, kNoSourcePosition); |
Expression* promise_reject = BuildRejectPromise( |
@@ -4585,8 +4583,7 @@ Expression* Parser::RewriteYieldStar(Expression* generator, |
Scope* catch_scope = NewScope(CATCH_SCOPE); |
catch_scope->set_is_hidden(); |
const AstRawString* name = ast_value_factory()->dot_catch_string(); |
- Variable* catch_variable = catch_scope->DeclareLocal( |
- name, VAR, kCreatedInitialized, NORMAL_VARIABLE); |
+ Variable* catch_variable = catch_scope->DeclareLocal(name, VAR); |
try_catch = factory()->NewTryCatchStatementForDesugaring( |
try_block, catch_scope, catch_variable, catch_block, nopos); |
@@ -4872,8 +4869,7 @@ void Parser::FinalizeIteratorUse(Scope* use_scope, Variable* completion, |
{ |
Scope* catch_scope = NewScopeWithParent(use_scope, CATCH_SCOPE); |
Variable* catch_variable = |
- catch_scope->DeclareLocal(ast_value_factory()->dot_catch_string(), VAR, |
- kCreatedInitialized, NORMAL_VARIABLE); |
+ catch_scope->DeclareLocal(ast_value_factory()->dot_catch_string(), VAR); |
catch_scope->set_is_hidden(); |
Statement* rethrow; |
@@ -4979,8 +4975,7 @@ void Parser::BuildIteratorCloseForCompletion(Scope* scope, |
Scope* catch_scope = NewScopeWithParent(scope, CATCH_SCOPE); |
Variable* catch_variable = |
- catch_scope->DeclareLocal(ast_value_factory()->dot_catch_string(), VAR, |
- kCreatedInitialized, NORMAL_VARIABLE); |
+ catch_scope->DeclareLocal(ast_value_factory()->dot_catch_string(), VAR); |
catch_scope->set_is_hidden(); |
try_call_return = factory()->NewTryCatchStatement( |