LibJS: Update spec link to the hashbang comment syntax

The proposal reached stage 4 and was merged into the ECMA-262 spec. See:
https://github.com/tc39/ecma262/commit/2006dea

(cherry picked from commit 9f1517492cc85c5f12cb52436dc72ec21e594b7a)
This commit is contained in:
Timothy Flynn 2024-08-20 10:41:22 -04:00 committed by Nico Weber
parent 74186d8135
commit 7c6bb5bd77

View file

@ -615,7 +615,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);
}