Skip to content

Commit fbfd349

Browse files
committed
Change to debug fail instead of assert never
1 parent 6707172 commit fbfd349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ namespace ts {
617617
if (declarationMapText === text) return;
618618
break;
619619
default:
620-
Debug.assertNever(name as never);
620+
Debug.fail(`Unexpected path: ${name}`);
621621
}
622622
outputFiles.push({ name, text, writeByteOrderMark });
623623
},

0 commit comments

Comments
 (0)