Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index b04090062124c55b297cd88b7cad6da314bd642b..5e87016e16e8211e7f0455fe04966dcb9af21efa 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -67,6 +67,8 @@ PreParserIdentifier GetSymbolHelper(Scanner* scanner) { |
return PreParserIdentifier::Prototype(); |
if (scanner->LiteralMatches("constructor", 11)) |
return PreParserIdentifier::Constructor(); |
+ if (scanner->LiteralMatches("name", 4)) |
+ return PreParserIdentifier::Name(); |
return PreParserIdentifier::Default(); |
} |
} |