Skip to content

Commit a512e9e

Browse files
committed
PR feedback
1 parent 86d106a commit a512e9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/emitter.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3013,7 +3013,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
30133013
}
30143014

30153015
function emitEs6ExportDefaultCompat(node: Node) {
3016-
if (node.parent.kind === SyntaxKind.SourceFile && (!!(node.flags & NodeFlags.Default) || node.kind === SyntaxKind.ExportAssignment)) {
3016+
if (node.parent.kind === SyntaxKind.SourceFile) {
3017+
Debug.assert(!!(node.flags & NodeFlags.Default) || node.kind === SyntaxKind.ExportAssignment);
30173018
// only allow export default at a source file level
30183019
if (compilerOptions.module === ModuleKind.CommonJS || compilerOptions.module === ModuleKind.AMD || compilerOptions.module === ModuleKind.UMD) {
30193020
if (!currentSourceFile.symbol.exports["___esModule"]) {

0 commit comments

Comments
 (0)