Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 7b7a2aeb6a3ac958ec9ce3be1f8fab16d770ccfb..3f86efac7257cc6b84c7b3eeb58b0a1b60ca65a3 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -4118,7 +4118,7 @@ void Parser::SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, |
// Ignore "__proto__" as a name when it's being used to set the [[Prototype]] |
// of an object literal. |
- if (property->kind() == ObjectLiteralProperty::PROTOTYPE) return; |
+ if (property->IsPrototype()) return; |
Expression* value = property->value(); |