File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1410,9 +1410,16 @@ namespace ts {
1410
1410
}
1411
1411
1412
1412
function popImplicitLabel ( implicitLabelIndex : number , outerState : Reachability ) : void {
1413
- Debug . assert ( labelStack . length === implicitLabelIndex + 1 , `Label stack: ${ labelStack . length } , index:${ implicitLabelIndex } ` ) ;
1413
+ if ( labelStack . length !== implicitLabelIndex + 1 ) {
1414
+ Debug . assert ( false , `Label stack: ${ labelStack . length } , index:${ implicitLabelIndex } ` ) ;
1415
+ }
1416
+
1414
1417
let i = implicitLabels . pop ( ) ;
1415
- Debug . assert ( implicitLabelIndex === i , `i: ${ i } , index: ${ implicitLabelIndex } ` ) ;
1418
+
1419
+ if ( implicitLabelIndex !== i ) {
1420
+ Debug . assert ( false , `i: ${ i } , index: ${ implicitLabelIndex } ` ) ;
1421
+ }
1422
+
1416
1423
setCurrentStateAtLabel ( labelStack . pop ( ) , outerState , /*name*/ undefined ) ;
1417
1424
}
1418
1425
You can’t perform that action at this time.
0 commit comments