Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 7f0b63c905f50f9307e41e39880708e6a55f9918..e4bf76917d64e97949e56315233179405894e4ba 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -765,11 +765,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: |