forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): Remove circular dependency in Angular 2 ES5 output.
Remove couple of circular dependency between modules in Angular 2 ES5 output caused by exception_handler.ts and router_providers.ts. Fix the build/checkCircularDependency gulp task to call madge properly to detect the circular deps. Closes angular#7287
- Loading branch information
Showing
7 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
library angular.core.facade.base_wrapped_exception; | ||
|
||
/** | ||
* A base class for the WrappedException that can be used to identify | ||
* a WrappedException from ExceptionHandler without adding circular | ||
* dependency. | ||
*/ | ||
class BaseWrappedException extends Error { | ||
BaseWrappedException(); | ||
|
||
get originalException => null; | ||
get originalStack => null; | ||
|
||
String get message => ''; | ||
String get wrapperMessage => ''; | ||
dynamic get context => null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* A base class for the WrappedException that can be used to identify | ||
* a WrappedException from ExceptionHandler without adding circular | ||
* dependency. | ||
*/ | ||
export class BaseWrappedException extends Error { | ||
constructor(message: string) { super(message); } | ||
|
||
get wrapperMessage(): string { return ''; } | ||
get wrapperStack(): any { return null; } | ||
get originalException(): any { return null; } | ||
get originalStack(): any { return null; } | ||
get context(): any { return null; } | ||
get message(): string { return ''; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters