Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 2db1873fdf10c051effb0672148d62e53b3b7537..dddba9d23da6e118e7987e7f0e714f8b43929101 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1132,13 +1132,9 @@ void AstGraphBuilder::VisitVariableDeclaration(VariableDeclaration* decl) { |
} |
break; |
case VariableLocation::LOOKUP: { |
+ DCHECK(!hole_init); |
Node* name = jsgraph()->Constant(variable->name()); |
- // For variables we must not push an initial value (such as 'undefined') |
- // because we may have a (legal) redeclaration and we must not destroy |
- // the current value. |
- Node* value = |
- hole_init ? jsgraph()->TheHoleConstant() |
- : jsgraph()->ZeroConstant(); // Indicates no initial value. |
+ Node* value = jsgraph()->ZeroConstant(); // Indicates no initial value. |
Node* attr = |
jsgraph()->Constant(variable->DeclarationPropertyAttributes()); |
const Operator* op = |