style: tslint enforces no debugger statements left behind (#25532)

PR Close #25532
This commit is contained in:
Miško Hevery
2018-08-16 15:55:45 -07:00
committed by Jason Aden
parent 503905c807
commit 116946fb11
8 changed files with 44 additions and 22 deletions

View File

@ -116,6 +116,7 @@ function _it(
jsmFn: Function, testName: string, testFn: (done?: DoneFn) => any, testTimeout = 0): void {
if (runnerStack.length == 0) {
// This left here intentionally, as we should never get here, and it aids debugging.
// tslint:disable-next-line
debugger;
throw new Error('Empty Stack!');
}