Commit Graph
1 Commits
Author SHA1 Message Date
RRFZ 5d8ef28f5b Count call chains and label runs in the JavaScript nesting estimate (R3.12) (#1863)
Calls, index reads and tagged templates that follow one another, and labels in a row, each nest the syntax tree one level, but the estimate stayed flat, so a source with millions of links was sent to the parser and overflowed its stack. The estimate now counts each link, keeps the count across a closed bracket the expression goes on after, and skips comments. The tokenizer also treats JavaScript's non-ASCII spaces and the vertical tab as whitespace.
2026-11-14 22:46:41 +07:00