Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index 88d4d594fceded1b2020cabd91050d6085a9b2f5..689b610e14b5d3c0abe0b46ae398978f4ba9239f 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -722,6 +722,10 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) { |
return identifier == ast_value_factory()->constructor_string(); |
} |
+ V8_INLINE bool IsName(const AstRawString* identifier) const { |
+ return identifier == ast_value_factory()->name_string(); |
+ } |
+ |
V8_INLINE static bool IsBoilerplateProperty( |
ObjectLiteral::Property* property) { |
return ObjectLiteral::IsBoilerplateProperty(property); |