Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 8d80e9ea3f99a6192f55e2a1e032378903c83552..3ad15d2d448a922194df578a6fb06ae9c84e1b37 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -715,10 +715,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: |