Skip to content
Permalink
Browse files

fix(compiler-cli): ensure that `ngI18nClosureMode` is guarded in gene…

…rated code (#34211)

If the `ngI18nClosureMode` global check actually makes it
through to the runtime, then checks for its existence should
be guarded to prevent `Reference undefined` errors in strict
mode.

(Normally, it is stripped out by dead code elimination during
build optimization.)

This comment ensures that generated template code guards
this global check.

PR Close #34211
  • Loading branch information
petebacondarwin authored and mhevery committed Dec 3, 2019
1 parent 2546261 commit 4d025562c4c9f412556e06195f018a74cf06adcf

0 comments on commit 4d02556

Please sign in to comment.
You can’t perform that action at this time.