Skip to content

parser: should not parse as or satisfies expression for js #6427

@Dunqing

Description

@Dunqing

Please check out the Playground

a as any

The above code should throw an error if TS doesn't enable, because as is not a keyword in JavaScript

Metadata

Metadata

Assignees

Labels

A-parserArea - ParserC-bugCategory - Bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions