fix(core): i18n flags leaking on errors · angular/angular@3430251 · GitHub
Skip to content

Commit 3430251

Browse files
crisbetoalxhub
authored andcommitted
fix(core): i18n flags leaking on errors
The i18n sub-system has the `changeMask` and `changeMaskCounter` flags which are set by i18n-related instructions and reset once the state is applied. The problem is that if something throws within the application logic, the flags would never be reset. This is currently causing flakes in our CI runs. These changes resolve the issue by adding a try/finally around the flags. (cherry picked from commit 6339d26)
1 parent ce7a43a commit 3430251

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

‎packages/core/src/render3/i18n/i18n_apply.ts‎

Lines changed: 17 additions & 14 deletions

0 commit comments

Comments
 (0)