From dcafddefb8004351561fbceed02f3bf3df1bb6c9 Mon Sep 17 00:00:00 2001 From: Andrew Kushnir Date: Fri, 1 Mar 2019 18:03:32 -0800 Subject: [PATCH] fix(ivy): change for-of to forEach for pipes represented with Map (#29068) This commit fixes the problem with using for-of for pipes represented with Map (by replacing it with forEach operation). PR Close #29068 --- packages/compiler-cli/src/ngtsc/annotations/src/component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/compiler-cli/src/ngtsc/annotations/src/component.ts b/packages/compiler-cli/src/ngtsc/annotations/src/component.ts index 53f00a6fdb..10843c0544 100644 --- a/packages/compiler-cli/src/ngtsc/annotations/src/component.ts +++ b/packages/compiler-cli/src/ngtsc/annotations/src/component.ts @@ -371,9 +371,7 @@ export class ComponentDecoratorHandler implements for (const dir of directives) { this._recordSyntheticImport(dir.expression, context); } - for (const [name, pipe] of pipes) { - this._recordSyntheticImport(pipe, context); - } + pipes.forEach((pipe: Expression) => this._recordSyntheticImport(pipe, context)); const binder = new R3TargetBinder(matcher); const bound = binder.bind({template: metadata.template.nodes});