Chromium Code Reviews| Index: src/preparser.cc |
| diff --git a/src/preparser.cc b/src/preparser.cc |
| index 3173cc0f900255aa1d764736d8c6f70d51da0ddb..44ef2ab9b8d367f75ecf12c7407b9b4b23d04747 100644 |
| --- a/src/preparser.cc |
| +++ b/src/preparser.cc |
| @@ -72,16 +72,16 @@ PreParserIdentifier PreParserTraits::GetSymbol(Scanner* scanner) { |
| } else if (scanner->current_token() == Token::YIELD) { |
| return PreParserIdentifier::Yield(); |
| } |
| - if (scanner->UnescapedLiteralMatches("eval", 4)) { |
| + if (scanner->LiteralMatches("eval", 4)) { |
|
caitp (gmail)
2014/10/01 20:52:18
I'm not sure if this should be used for "eval" and
arv (Not doing code reviews)
2014/10/01 21:00:34
eval and arguments should be the unescaped one.
|
| return PreParserIdentifier::Eval(); |
| } |
| - if (scanner->UnescapedLiteralMatches("arguments", 9)) { |
| + if (scanner->LiteralMatches("arguments", 9)) { |
| return PreParserIdentifier::Arguments(); |
| } |
| - if (scanner->UnescapedLiteralMatches("prototype", 9)) { |
| + if (scanner->LiteralMatches("prototype", 9)) { |
| return PreParserIdentifier::Prototype(); |
| } |
| - if (scanner->UnescapedLiteralMatches("constructor", 11)) { |
| + if (scanner->LiteralMatches("constructor", 11)) { |
| return PreParserIdentifier::Constructor(); |
| } |
| return PreParserIdentifier::Default(); |