mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibJS: Update spec link to the hashbang comment syntax
The proposal reached stage 4 and was merged into the ECMA-262 spec. See:
2006dea
This commit is contained in:
parent
caf1606c9f
commit
9f1517492c
Notes:
github-actions[bot]
2024-08-20 16:25:37 +00:00
Author: https://github.com/trflynn89
Commit: 9f1517492c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1141
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ bool Lexer::is_line_comment_start(bool line_has_token_yet) const
|
|||
// other block comment(s); or in other words: the current line does not have a token or
|
||||
// ongoing line comment yet
|
||||
|| (m_allow_html_comments && !line_has_token_yet && match('-', '-', '>'))
|
||||
// https://tc39.es/proposal-hashbang/out.html#sec-updated-syntax
|
||||
// https://tc39.es/ecma262/#sec-hashbang
|
||||
|| (match('#', '!') && m_position == 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue