diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Token.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Token.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Token.cpp b/Userland/Libraries/LibJS/Token.cpp index ffa611e80b..0944dbd04f 100644 --- a/Userland/Libraries/LibJS/Token.cpp +++ b/Userland/Libraries/LibJS/Token.cpp @@ -130,7 +130,7 @@ String Token::string_value(StringValueStatus& status) const continue; } // Line continuation - if (lexer.next_is(LINE_SEPARATOR) || lexer.next_is(PARAGRAPH_SEPARATOR)) { + if (lexer.next_is(LINE_SEPARATOR_STRING) || lexer.next_is(PARAGRAPH_SEPARATOR_STRING)) { lexer.ignore(3); continue; } @@ -281,7 +281,7 @@ bool Token::is_identifier_name() const bool Token::trivia_contains_line_terminator() const { - return m_trivia.contains('\n') || m_trivia.contains('\r') || m_trivia.contains(LINE_SEPARATOR) || m_trivia.contains(PARAGRAPH_SEPARATOR); + return m_trivia.contains('\n') || m_trivia.contains('\r') || m_trivia.contains(LINE_SEPARATOR_STRING) || m_trivia.contains(PARAGRAPH_SEPARATOR_STRING); } } |