diff options
Diffstat (limited to 'deps/v8/src/scanner-base.h')
-rw-r--r-- | deps/v8/src/scanner-base.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/src/scanner-base.h b/deps/v8/src/scanner-base.h index 3e1772a3d2..a7062a34af 100644 --- a/deps/v8/src/scanner-base.h +++ b/deps/v8/src/scanner-base.h @@ -419,7 +419,7 @@ class Scanner { } } - uc32 ScanHexEscape(uc32 c, int length); + uc32 ScanHexNumber(int expected_length); // Return the current source position. int source_pos() { @@ -537,6 +537,10 @@ class JavaScriptScanner : public Scanner { // Decodes a unicode escape-sequence which is part of an identifier. // If the escape sequence cannot be decoded the result is kBadChar. uc32 ScanIdentifierUnicodeEscape(); + // Recognizes a uniocde escape-sequence and adds its characters, + // uninterpreted, to the current literal. Used for parsing RegExp + // flags. + bool ScanLiteralUnicodeEscape(); // Start position of the octal literal last scanned. Location octal_pos_; |