Index: src/typing.cc |
diff --git a/src/typing.cc b/src/typing.cc |
index 84f596859d76d48892d9cc4a976e8e6165439316..03c1ad16ef853a25a5b5a363ccf857dcd3ae55ae 100644 |
--- a/src/typing.cc |
+++ b/src/typing.cc |
@@ -450,7 +450,8 @@ void AstTyper::VisitCall(Call* expr) { |
Expression* callee = expr->expression(); |
Property* prop = callee->AsProperty(); |
if (prop != NULL) { |
- expr->RecordTypeFeedback(oracle(), CALL_AS_METHOD); |
+ if (prop->key()->IsPropertyName()) |
+ expr->RecordTypeFeedback(oracle(), CALL_AS_METHOD); |
} else { |
expr->RecordTypeFeedback(oracle(), CALL_AS_FUNCTION); |
} |