Chromium Code Reviews| Index: src/scanner.cc |
| diff --git a/src/scanner.cc b/src/scanner.cc |
| index ad7c7d983c5e375afa7ddea2b1e89d6ac2ea89fd..ca9053c139b43c5d56edeeabbb3a29c3b37d410c 100644 |
| --- a/src/scanner.cc |
| +++ b/src/scanner.cc |
| @@ -41,8 +41,7 @@ Scanner::Scanner(UnicodeCache* unicode_cache) |
| : unicode_cache_(unicode_cache), |
| bookmark_c0_(kNoBookmark), |
| octal_pos_(Location::invalid()), |
| - harmony_modules_(false), |
| - harmony_unicode_(false) { |
| + harmony_modules_(false) { |
| bookmark_current_.literal_chars = &bookmark_current_literal_; |
| bookmark_current_.raw_literal_chars = &bookmark_current_raw_literal_; |
| bookmark_next_.literal_chars = &bookmark_next_literal_; |
| @@ -1076,10 +1075,10 @@ uc32 Scanner::ScanIdentifierUnicodeEscape() { |
| template <bool capture_raw> |
| uc32 Scanner::ScanUnicodeEscape() { |
| - // Accept both \uxxxx and \u{xxxxxx} (if harmony unicode escapes are |
| - // allowed). In the latter case, the number of hex digits between { } is |
| + // Accept both \uxxxx and \u{xxxxxx}. |
|
rossberg
2015/08/05 07:58:07
Nit: reformat.
adamk
2015/08/05 18:16:17
Done.
|
| + // In the latter case, the number of hex digits between { } is |
| // arbitrary. \ and u have already been read. |
| - if (c0_ == '{' && HarmonyUnicode()) { |
| + if (c0_ == '{') { |
| Advance<capture_raw>(); |
| uc32 cp = ScanUnlimitedLengthHexNumber<capture_raw>(0x10ffff); |
| if (cp < 0) { |