parent
c2b5ebfa24
commit
70ef061fa6
|
@ -34,7 +34,8 @@ export class NullInjector implements Injector {
|
||||||
if (notFoundValue === _THROW_IF_NOT_FOUND) {
|
if (notFoundValue === _THROW_IF_NOT_FOUND) {
|
||||||
// Intentionally left behind: With dev tools open the debugger will stop here. There is no
|
// Intentionally left behind: With dev tools open the debugger will stop here. There is no
|
||||||
// reason why correctly written application should cause this exception.
|
// reason why correctly written application should cause this exception.
|
||||||
debugger;
|
// TODO(misko): uncomment the next line once `ngDevMode` works with closure.
|
||||||
|
// if(ngDevMode) debugger;
|
||||||
throw new Error(`NullInjectorError: No provider for ${stringify(token)}!`);
|
throw new Error(`NullInjectorError: No provider for ${stringify(token)}!`);
|
||||||
}
|
}
|
||||||
return notFoundValue;
|
return notFoundValue;
|
||||||
|
|
Loading…
Reference in New Issue