fix(core): Remove `debugger` statement when assert is thrown (#35763)

Fix #35470
Fix FW-1925

PR Close #35763
This commit is contained in:
Misko Hevery 2020-02-28 10:11:52 -08:00 committed by atscott
parent 8f38eb7acb
commit 40035380e7
1 changed files with 0 additions and 2 deletions

View File

@ -93,8 +93,6 @@ export function assertDefined<T>(actual: T, msg: string) {
export function throwError(msg: string): never; export function throwError(msg: string): never;
export function throwError(msg: string, actual: any, expected: any, comparison: string): never; export function throwError(msg: string, actual: any, expected: any, comparison: string): never;
export function throwError(msg: string, actual?: any, expected?: any, comparison?: string): never { export function throwError(msg: string, actual?: any, expected?: any, comparison?: string): never {
// tslint:disable-next-line
debugger; // Left intentionally for better debugger experience.
throw new Error( throw new Error(
`ASSERTION ERROR: ${msg}` + `ASSERTION ERROR: ${msg}` +
(comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`)); (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`));