Skip to content

pretty-printing reparsed JS nodes crashes on GetTypeNodePrecedence #843

Open
@sandersn

Description

@sandersn

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 printingDomain: EmitRelated to emit, AST printing, Program emit funcsDomain: JSRelated to JS parsing, checking

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions