Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 4ecbda764bf6402a628459988e4325cf3d61e0c2..8f110c6e5876accea718e4189073e93376d8b25e 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -916,7 +916,7 @@ void AstGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { |
ObjectLiteral::Property* property = expr->properties()->at(i); |
if (property->IsCompileTimeValue()) continue; |
- Literal* key = property->key(); |
+ Literal* key = property->key()->AsLiteral(); |
switch (property->kind()) { |
case ObjectLiteral::Property::CONSTANT: |
UNREACHABLE(); |