Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 10e3f903179f8c97bf4a15cf51892ac11c98b574..f1558ea17a2e8bcf770b953338fbd4c0ceafac29 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -747,14 +747,11 @@ void BytecodeGenerator::VisitVariableDeclaration(VariableDeclaration* decl) { |
bool hole_init = mode == CONST || mode == LET; |
switch (variable->location()) { |
case VariableLocation::GLOBAL: |
- case VariableLocation::UNALLOCATED: { |
- Handle<Oddball> value = variable->binding_needs_init() |
- ? isolate()->factory()->the_hole_value() |
- : isolate()->factory()->undefined_value(); |
+ case VariableLocation::UNALLOCATED: |
+ DCHECK(!variable->binding_needs_init()); |
globals()->push_back(variable->name()); |
- globals()->push_back(value); |
+ globals()->push_back(isolate()->factory()->undefined_value()); |
break; |
- } |
case VariableLocation::LOCAL: |
if (hole_init) { |
Register destination(variable->index()); |