8000 `x</x>/` fails to parse Β· Issue #51649 Β· microsoft/TypeScript Β· GitHub
[go: up one dir, main page]

Skip to content
x</x>/ fails to parseΒ #51649
Closed as not planned
Closed as not planned
@antimatter15

Description

@antimatter15

Bug Report

πŸ”Ž Search Terms

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about it

⏯ Playground Link

Playground link with relevant code

πŸ’» Code

x </x>/

πŸ™ Actual behavior

There is a parse error for a perfectly valid expression

Unexpected keyword or identifier.
Declaration or statement expected.
Unterminated regular expression literal.

πŸ™‚ Expected behavior

It should instead parse the expression as

x < /x>/

This is the behavior that is found in Babel and ESBuild.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Won't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0