| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 36a0ecea8dcaba5dbf79d390e13a4eda544b9e73..00964b0199b5d14bf5a19bd7fb1795f537b0e792 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -1092,14 +1092,11 @@ void AstGraphBuilder::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::PARAMETER:
|
| case VariableLocation::LOCAL:
|
| if (hole_init) {
|
|
|