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
This commit is contained in:
Andrew Kushnir 2019-03-01 18:03:32 -08:00
parent c0757d1d44
commit dcafddefb8
1 changed files with 1 additions and 3 deletions

View File

@ -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});