mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 15:28:55 +00:00
LibWeb: Emit comment token for unterminated bogus comments on EOF
This commit is contained in:
parent
627b7dd936
commit
8b5e9c2a1d
Notes:
github-actions[bot]
2025-01-11 10:10:44 +00:00
Author: https://github.com/tcl3
Commit: 8b5e9c2a1d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3158
Reviewed-by: https://github.com/awesomekling
2 changed files with 4 additions and 5 deletions
|
@ -488,8 +488,8 @@ _StartOfFunction:
|
|||
}
|
||||
ON_EOF
|
||||
{
|
||||
m_queued_tokens.enqueue(move(m_current_token));
|
||||
EMIT_EOF;
|
||||
m_current_token.set_comment(consume_current_builder());
|
||||
EMIT_CURRENT_TOKEN_FOLLOWED_BY_EOF;
|
||||
}
|
||||
ON(0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue