| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index 8005479a32670b05c34eef744975b0d47d86af17..f68f6e0e9e5f11ddf8d8baa311ab403f39acdd71 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -1386,7 +1386,7 @@ void* Parser::ParseExportClause(ZoneList<const AstRawString*>* export_names,
|
| // Keep track of the first reserved word encountered in case our
|
| // caller needs to report an error.
|
| if (!reserved_loc->IsValid() &&
|
| - !Token::IsIdentifier(name_tok, STRICT, false)) {
|
| + !Token::IsIdentifier(name_tok, STRICT, false, true)) {
|
| *reserved_loc = scanner()->location();
|
| }
|
| const AstRawString* local_name = ParseIdentifierName(CHECK_OK);
|
| @@ -1437,7 +1437,7 @@ ZoneList<ImportDeclaration*>* Parser::ParseNamedImports(int pos, bool* ok) {
|
| if (CheckContextualKeyword(CStrVector("as"))) {
|
| local_name = ParseIdentifierName(CHECK_OK);
|
| }
|
| - if (!Token::IsIdentifier(scanner()->current_token(), STRICT, false)) {
|
| + if (!Token::IsIdentifier(scanner()->current_token(), STRICT, false, true)) {
|
| *ok = false;
|
| ReportMessage(MessageTemplate::kUnexpectedReserved);
|
| return NULL;
|
|
|