diff --git a/packages/core/test/render3/jit/declare_component_spec.ts b/packages/core/test/render3/jit/declare_component_spec.ts index baa07488c5..ae28abd2b8 100644 --- a/packages/core/test/render3/jit/declare_component_spec.ts +++ b/packages/core/test/render3/jit/declare_component_spec.ts @@ -19,7 +19,8 @@ describe('component declaration jit compilation', () => { expectComponentDef(def, { template: functionContaining([ - /element[^(]*\(0,'div'\)/, + // NOTE: the `anonymous` match is to support IE11, as functions don't have a name there. + /(?:element|anonymous)[^(]*\(0,'div'\)/, ]), }); });