Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: src/ast/scopes.cc

Issue 2278963002: Fully setup the catch variable for catch scopes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.cc
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
index eb92cefb98f055f12081c00611624944e361c26a..d5b584baf5fff15050f31dfd726ac5e26f9dc8b2 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -183,9 +183,8 @@ Scope::Scope(Zone* zone, const AstRawString* catch_variable_name)
#ifdef DEBUG
already_resolved_ = true;
#endif
- Variable* variable =
- variables_.Declare(zone, this, catch_variable_name, VAR, Variable::NORMAL,
- kCreatedInitialized);
+ Variable* variable = Declare(zone, this, catch_variable_name, VAR,
+ Variable::NORMAL, kCreatedInitialized);
AllocateHeapSlot(variable);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698