-
Notifications
You must be signed in to change notification settings - Fork 662
Open
Labels
Domain: Declaration EmitRelated to declaration emit, type printingRelated to declaration emit, type printingDomain: EmitRelated to emit, AST printing, Program emit funcsRelated to emit, AST printing, Program emit funcsDomain: JSRelated to JS parsing, checkingRelated to JS parsing, checking
Description
Reparsed JS nodes shouldn't normally be pretty-printed, but if they are, they shouldn't crash.
Specifically, @weswigham has seen crashes in GetTypeNodePrecedence
with JSDocTypeExpression
and JSDocTypeLiteral
. JSDocTypeExpression
can show up on a JSTypeAlias
.
I don't know if Strada has tests that cover this, but Corsa definitely doesn't have them yet.
Metadata
Metadata
Assignees
Labels
Domain: Declaration EmitRelated to declaration emit, type printingRelated to declaration emit, type printingDomain: EmitRelated to emit, AST printing, Program emit funcsRelated to emit, AST printing, Program emit funcsDomain: JSRelated to JS parsing, checkingRelated to JS parsing, checking