Skip to content

Commit 300500b

Browse files
author
Andy Hanson
committed
Put noAssert back, pending #23370
1 parent 301288b commit 300500b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/transformers/es2015.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ namespace ts {
20752075
const firstDeclaration = firstOrUndefined(declarations);
20762076
if (firstDeclaration) {
20772077
const lastDeclaration = lastOrUndefined(declarations);
2078-
setSourceMapRange(declarationList, createRange(firstDeclaration.pos, lastDeclaration.end));
2078+
setSourceMapRange(declarationList, createRange(firstDeclaration.pos, lastDeclaration.end, /*noAssert*/ true)); // TODO: GH#23370
20792079
}
20802080
}
20812081

src/compiler/utilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3686,8 +3686,8 @@ namespace ts {
36863686
* @param pos The start position.
36873687
* @param end The end position.
36883688
*/
3689-
export function createRange(pos: number, end: number = pos): TextRange {
3690-
Debug.assert(end >= pos || end === -1);
3689+
export function createRange(pos: number, end: number = pos, noAssert?: boolean): TextRange {
3690+
Debug.assert(end >= pos || end === -1 || noAssert); // TODO: GH#23370
36913691
return { pos, end };
36923692
}
36933693

0 commit comments

Comments
 (0)