mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 04:59:23 +00:00
LibJS: Correct line ending detection in debug output
This commit is contained in:
parent
fb97fde15b
commit
adc78e9d54
Notes:
github-actions[bot]
2025-09-28 15:24:45 +00:00
Author: https://github.com/rcorsi
Commit: adc78e9d54
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6264
Reviewed-by: https://github.com/trflynn89
1 changed files with 4 additions and 2 deletions
|
@ -327,10 +327,12 @@ void Lexer::consume()
|
|||
type = "LINE FEED"sv;
|
||||
else if (m_current_code_unit == '\r')
|
||||
type = "CARRIAGE RETURN"sv;
|
||||
else if (m_source.code_unit_at(m_position + 1) == LINE_SEPARATOR)
|
||||
else if (m_current_code_unit == LINE_SEPARATOR)
|
||||
type = "LINE SEPARATOR"sv;
|
||||
else
|
||||
else if (m_current_code_unit == PARAGRAPH_SEPARATOR)
|
||||
type = "PARAGRAPH SEPARATOR"sv;
|
||||
else
|
||||
VERIFY_NOT_REACHED();
|
||||
dbgln("Found a line terminator: {}", type);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue