fix(router): don't use spread operator to workaround an issue in closure compiler (#22884)

Closure compiler could not handle the spread operator in this one place. Working around it by removing the use of spread operator.

PR Close #22884
This commit is contained in:
Vikram Subramanian 2018-03-20 06:58:54 -07:00 committed by Igor Minar
parent 7d095b96cd
commit e6c731f791
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ export function waitForMap<A, B>(
}
});
return of (...waitHead, ...waitTail).pipe(concatAll(), lastValue(), map(() => res));
// Closure compiler has problem with using spread operator here. So just using Array.concat.
return of .apply(null, waitHead.concat(waitTail)).pipe(concatAll(), lastValue(), map(() => res));
}
/**