Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 76d1ef51e2c3f9d666a654a4ab808b8c25f7579b..37fabc673bdfbc8f2b6373f85e0341ec1d5e94b2 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -12334,10 +12334,9 @@ void HOptimizedGraphBuilder::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()); |
return; |
case VariableLocation::PARAMETER: |
case VariableLocation::LOCAL: |