Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index e5ff0cce27fcba3a13dcdb74efde8d27eed11f1d..fb2c050384bda0955dcaec2604736664cb5088fa 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1760,7 +1760,8 @@ void AstGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { |
case ObjectLiteral::Property::COMPUTED: { |
// It is safe to use [[Put]] here because the boilerplate already |
// contains computed properties with an uninitialized value. |
- if (key->IsPropertyName()) { |
+ if (key->IsStringLiteral()) { |
+ DCHECK(key->IsPropertyName()); |
if (property->emit_store()) { |
VisitForValue(property->value()); |
Node* value = environment()->Pop(); |