Skip to content

Commit

Permalink
fix(compiler): limit the number of chained instructions (#57069)
Browse files Browse the repository at this point in the history
Some Angular template instructions that follow each other may be chained
together in a single expressions statement, containing a deeply nested
AST of call expressions. The number of chained instructions wasn't previously
limited, so this could result in very deep ASTs that cause stack overflow
errors during TypeScript emit.

This commit introduces a limit to the number of chained instructions to
avoid these problems.

Closes #57066

PR Close #57069
  • Loading branch information
JoostK authored and atscott committed Jul 22, 2024
1 parent 06ae226 commit 4639450
Show file tree
Hide file tree
Showing 5 changed files with 849 additions and 1 deletion.
Loading

0 comments on commit 4639450

Please sign in to comment.