style: tslint enforces no debugger statements left behind (#25532)
PR Close #25532
This commit is contained in:
@ -60,10 +60,8 @@ export interface Injectable { providedIn?: Type<any>|'root'|null; }
|
||||
* @Annotation
|
||||
*/
|
||||
export const Injectable: InjectableDecorator = makeDecorator(
|
||||
'Injectable', undefined, undefined, undefined, (type: Type<any>, meta: Injectable) => {
|
||||
debugger;
|
||||
return R3_COMPILE_INJECTABLE(type, meta);
|
||||
});
|
||||
'Injectable', undefined, undefined, undefined,
|
||||
(type: Type<any>, meta: Injectable) => R3_COMPILE_INJECTABLE(type, meta));
|
||||
|
||||
/**
|
||||
* Type representing injectable service.
|
||||
|
@ -77,6 +77,7 @@ export function assertNgModuleType(
|
||||
}
|
||||
|
||||
function throwError(msg: string): never {
|
||||
// tslint:disable-next-line
|
||||
debugger; // Left intentionally for better debugger experience.
|
||||
throw new Error(`ASSERTION ERROR: ${msg}`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user