| Index: src/scanner.cc
|
| diff --git a/src/scanner.cc b/src/scanner.cc
|
| index de1b8e8b7202d211b297e8ca5737fb8f411299ed..43baa9e23244a43646abc6579bf7e42945e17ad5 100644
|
| --- a/src/scanner.cc
|
| +++ b/src/scanner.cc
|
| @@ -1158,6 +1158,14 @@ static Token::Value KeywordOrIdentifierToken(const uint8_t* input,
|
| }
|
|
|
|
|
| +bool Scanner::IdentifierIsFutureReserved(const AstRawString* string) const {
|
| + return Token::FUTURE_RESERVED_WORD ==
|
| + KeywordOrIdentifierToken(string->raw_data(), string->length(),
|
| + harmony_scoping_, harmony_modules_,
|
| + harmony_classes_);
|
| +}
|
| +
|
| +
|
| bool Scanner::IdentifierIsFutureStrictReserved(
|
| const AstRawString* string) const {
|
| // Keywords are always 1-byte strings.
|
|
|