Index: src/scanner.cc |
diff --git a/src/scanner.cc b/src/scanner.cc |
index e63239d6eb0d3afed82d7af59498cc6c9a1cbfe4..ddcd937584d50fc45fa921a25e2a5d21fcf5697e 100644 |
--- a/src/scanner.cc |
+++ b/src/scanner.cc |
@@ -1138,24 +1138,6 @@ bool Scanner::ScanRegExpPattern(bool seen_equal) { |
} |
-bool Scanner::ScanLiteralUnicodeEscape() { |
- DCHECK(c0_ == '\\'); |
- AddLiteralChar(c0_); |
- Advance(); |
- int hex_digits_read = 0; |
- if (c0_ == 'u') { |
- AddLiteralChar(c0_); |
- while (hex_digits_read < 4) { |
- Advance(); |
- if (!IsHexDigit(c0_)) break; |
- AddLiteralChar(c0_); |
- ++hex_digits_read; |
- } |
- } |
- return hex_digits_read == 4; |
-} |
- |
- |
bool Scanner::ScanRegExpFlags() { |
// Scan regular expression flags. |
LiteralScope literal(this); |
@@ -1163,10 +1145,7 @@ bool Scanner::ScanRegExpFlags() { |
if (c0_ != '\\') { |
AddLiteralCharAdvance(); |
} else { |
- if (!ScanLiteralUnicodeEscape()) { |
- return false; |
- } |
- Advance(); |
+ return false; |
} |
} |
literal.Complete(); |