Index: src/ast/ast-expression-rewriter.cc |
diff --git a/src/ast/ast-expression-rewriter.cc b/src/ast/ast-expression-rewriter.cc |
index 7bb8f0819244b489a532d88f1f03ef1ce6264c82..c4fa71be0a2ce769139a7615c080343d63705a21 100644 |
--- a/src/ast/ast-expression-rewriter.cc |
+++ b/src/ast/ast-expression-rewriter.cc |
@@ -201,11 +201,10 @@ void AstExpressionRewriter::VisitClassLiteral(ClassLiteral* node) { |
AST_REWRITE_PROPERTY(FunctionLiteral, node, constructor); |
ZoneList<typename ClassLiteral::Property*>* properties = node->properties(); |
for (int i = 0; i < properties->length(); i++) { |
- VisitObjectLiteralProperty(properties->at(i)); |
+ VisitLiteralProperty(properties->at(i)); |
} |
} |
- |
void AstExpressionRewriter::VisitNativeFunctionLiteral( |
NativeFunctionLiteral* node) { |
REWRITE_THIS(node); |
@@ -243,13 +242,11 @@ void AstExpressionRewriter::VisitObjectLiteral(ObjectLiteral* node) { |
REWRITE_THIS(node); |
ZoneList<typename ObjectLiteral::Property*>* properties = node->properties(); |
for (int i = 0; i < properties->length(); i++) { |
- VisitObjectLiteralProperty(properties->at(i)); |
+ VisitLiteralProperty(properties->at(i)); |
} |
} |
- |
-void AstExpressionRewriter::VisitObjectLiteralProperty( |
- ObjectLiteralProperty* property) { |
+void AstExpressionRewriter::VisitLiteralProperty(LiteralProperty* property) { |
if (property == nullptr) return; |
AST_REWRITE_PROPERTY(Expression, property, key); |
AST_REWRITE_PROPERTY(Expression, property, value); |