Skip to content

Commit 7f8ef38

Browse files
committed
addressed PR feedback
1 parent f5a4b0b commit 7f8ef38

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/compiler/emitter.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -3917,7 +3917,8 @@ module ts {
39173917
renameNonTopLevelLetAndConst(name);
39183918
if (name.parent && (name.parent.kind === SyntaxKind.VariableDeclaration || name.parent.kind === SyntaxKind.BindingElement)) {
39193919
emitModuleMemberName(<Declaration>name.parent);
3920-
} else {
3920+
}
3921+
else {
39213922
emit(name);
39223923
}
39233924
write(" = ");
@@ -5373,7 +5374,7 @@ module ts {
53735374
emitLeadingComments(node);
53745375
}
53755376

5376-
emitJavaScriptWorker(node, (allowGeneratedIdentifiers === undefined) || allowGeneratedIdentifiers);
5377+
emitJavaScriptWorker(node, allowGeneratedIdentifiers);
53775378

53785379
if (emitComments) {
53795380
emitTrailingComments(node);
@@ -5389,7 +5390,7 @@ module ts {
53895390
return emitPinnedOrTripleSlashComments(node);
53905391
}
53915392

5392-
emitJavaScriptWorker(node, (allowGeneratedIdentifiers === undefined) || allowGeneratedIdentifiers);
5393+
emitJavaScriptWorker(node, allowGeneratedIdentifiers);
53935394
}
53945395

53955396
function shouldEmitLeadingAndTrailingComments(node: Node) {
@@ -5419,7 +5420,7 @@ module ts {
54195420
return true;
54205421
}
54215422

5422-
function emitJavaScriptWorker(node: Node, allowGeneratedIdentifiers: boolean) {
5423+
function emitJavaScriptWorker(node: Node, allowGeneratedIdentifiers: boolean = true) {
54235424
// Check if the node can be emitted regardless of the ScriptTarget
54245425
switch (node.kind) {
54255426
case SyntaxKind.Identifier:

0 commit comments

Comments
 (0)