Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/compiler/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,6 @@ namespace ts {
}

function emitCatchClause(node: CatchClause) {
writeLine();
const openParenPos = writeToken(SyntaxKind.CatchKeyword, node.pos);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about single line comments before the catch keyword:

try {

} //ddd
catch (x) { }

Copy link
Copy Markdown
Contributor Author

@gdh1995 gdh1995 Jan 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I'll try to solve it.

Updated: The comment seems to have no influence.

write(" ");
writeToken(SyntaxKind.OpenParenToken, openParenPos);
Expand Down