Index: src/ast/scopes.cc |
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
index c6ec5640bc3aae6ab04cf47a43c1ef22bb5b8d3c..4d7ddd2ca8c10a03882cc84119ab01d51e37069e 100644 |
--- a/src/ast/scopes.cc |
+++ b/src/ast/scopes.cc |
@@ -1249,9 +1249,9 @@ Variable* Scope::NonLocal(const AstRawString* name, VariableMode mode) { |
Variable* var = map->Lookup(name); |
if (var == NULL) { |
// Declare a new non-local. |
- InitializationFlag init_flag = (mode == VAR) |
- ? kCreatedInitialized : kNeedsInitialization; |
- var = map->Declare(zone(), NULL, name, mode, Variable::NORMAL, init_flag); |
+ DCHECK(!IsLexicalVariableMode(mode)); |
+ var = map->Declare(zone(), NULL, name, mode, Variable::NORMAL, |
+ kCreatedInitialized); |
// Allocate it by giving it a dynamic lookup. |
var->AllocateTo(VariableLocation::LOOKUP, -1); |
} |