4 ms·
Source: https://github.com/v8/v8/blob/main/src/parsing/scanner-inl.h#L382 https://github.com/v8/v8/blob/main/src/parsing/scanner-inl.h... and https://github.
by gregsadetsky 5y ago
Source:
https://github.com/v8/v8/blob/main/src/parsing/scanner-inl.h#L382 https://github.com/v8/v8/blob/main/src/parsing/scanner-inl.h...
and
https://github.com/v8/v8/blob/main/src/parsing/scanner.cc#L320 https://github.com/v8/v8/blob/main/src/parsing/scanner.cc#L3...
And also this nice article:
https://v8.dev/blog/scanner 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"