From 3169edd77a0090f482851874aa393b2626760096 Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Thu, 26 Jul 2018 13:33:55 -0700 Subject: [PATCH] fix(ivy): don't crash in listLazyRoutes() (#25080) This commit replaces the "not implemented" error when calling listLazyRoutes() with an empty result, which will allow testing in the CLI before listLazyRoutes() is implemented. PR Close #25080 --- packages/compiler-cli/src/ngtsc/program.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/compiler-cli/src/ngtsc/program.ts b/packages/compiler-cli/src/ngtsc/program.ts index 6d4544f8af..48df2fbae4 100644 --- a/packages/compiler-cli/src/ngtsc/program.ts +++ b/packages/compiler-cli/src/ngtsc/program.ts @@ -82,9 +82,7 @@ export class NgtscProgram implements api.Program { .filter((result): result is Promise => result !== undefined)); } - listLazyRoutes(entryRoute?: string|undefined): api.LazyRoute[] { - throw new Error('Method not implemented.'); - } + listLazyRoutes(entryRoute?: string|undefined): api.LazyRoute[] { return []; } getLibrarySummaries(): Map { throw new Error('Method not implemented.');