mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Remove useless peekChar calling in Lexer::lex
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
135ee35c54
commit
87c8a581bd
1 changed files with 1 additions and 2 deletions
|
|
@ -2336,8 +2336,7 @@ void Scanner::lex(Scanner::ScannerResult* token)
|
|||
|
||||
char16_t cp = this->peekCharWithoutEOF();
|
||||
|
||||
if (UNLIKELY(cp >= 128 && this->peekChar() >= 0xD800 && this->peekChar() < 0xDFFF)) {
|
||||
cp = peekChar();
|
||||
if (UNLIKELY(cp >= 128 && cp >= 0xD800 && cp < 0xDFFF)) {
|
||||
++this->index;
|
||||
char32_t ch2 = this->peekChar();
|
||||
if (U16_IS_TRAIL(ch2)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue