Skip to content

Commit

Permalink
fix(compiler): limit the number of chained instructions (angular#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 angular#57066

PR Close angular#57069
  • Loading branch information
JoostK authored and vladboisa committed Jul 29, 2024
1 parent 5de3eda commit 809eb9a
Show file tree
Hide file tree
Showing 5 changed files with 849 additions and 1 deletion.
Loading

0 comments on commit 809eb9a

Please sign in to comment.