Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index f71cb8e082bf2f333cc58f7e85f48bf151023cf4..e732cfdf36e6d1d9c0f9ccae50ef4cb27585143f 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -768,11 +768,9 @@ void FullCodeGenerator::VisitVariableDeclaration( |
switch (variable->location()) { |
case VariableLocation::GLOBAL: |
case VariableLocation::UNALLOCATED: |
+ DCHECK(!variable->binding_needs_init()); |
globals_->Add(variable->name(), zone()); |
- globals_->Add(variable->binding_needs_init() |
- ? isolate()->factory()->the_hole_value() |
- : isolate()->factory()->undefined_value(), |
- zone()); |
+ globals_->Add(isolate()->factory()->undefined_value(), zone()); |
break; |
case VariableLocation::PARAMETER: |