You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
emitNodeConsideringCommentsOption calls emitLeadingComments once before calling emitNodeWithSourceMap (seen here), but then emitFunctionDeclaration (at the bottom of this stack) itself calls emitLeadingComments again on the same node.
The code in emitFunctionDeclaration appears to try to defend against this double-emitting but gets it wrong in this case.
The text was updated successfully, but these errors were encountered:
Split off from issue #6982. In TypeScript 6b05ad7, which is master as of 19 Feb 2016.
This input:
produces the comment twice, with output like:
The end of the call stack at the time of the second emit is (innermost function at the top):
emitNodeConsideringCommentsOption
callsemitLeadingComments
once before callingemitNodeWithSourceMap
(seen here), but thenemitFunctionDeclaration
(at the bottom of this stack) itself callsemitLeadingComments
again on the same node.The code in
emitFunctionDeclaration
appears to try to defend against this double-emitting but gets it wrong in this case.The text was updated successfully, but these errors were encountered: