News for hackers. Stuff that matters.
Re:HTML comments work in JavaScript too by gregsadetsky on Tuesday March 08, 2022 @03:47PM (#30606659)
Source:

https://github.com/v8/v8/blob/main/src/parsing/scanner-inl.h...

and

https://github.com/v8/v8/blob/main/src/parsing/scanner.cc#L3...

And also this nice article:

https://v8.dev/blog/scanner

"The scanner chooses a specific scanner method or token based on a maximum lookahead of 4 characters, the longest ambiguous sequence of characters in JavaScript"

There are no comments on this comment yet.