From a512e9eeae8e5b9f49357f69e298db98d2296582 Mon Sep 17 00:00:00 2001 From: vvakame Date: Thu, 16 Jul 2015 03:05:10 +0900 Subject: [PATCH] PR feedback --- src/compiler/emitter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 6cee68f7e12..cd827a54c51 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -3013,7 +3013,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } function emitEs6ExportDefaultCompat(node: Node) { - if (node.parent.kind === SyntaxKind.SourceFile && (!!(node.flags & NodeFlags.Default) || node.kind === SyntaxKind.ExportAssignment)) { + if (node.parent.kind === SyntaxKind.SourceFile) { + Debug.assert(!!(node.flags & NodeFlags.Default) || node.kind === SyntaxKind.ExportAssignment); // only allow export default at a source file level if (compilerOptions.module === ModuleKind.CommonJS || compilerOptions.module === ModuleKind.AMD || compilerOptions.module === ModuleKind.UMD) { if (!currentSourceFile.symbol.exports["___esModule"]) {