Skip to content

[Bug]: Tagged templates should never throw about invalid contents #14775

@nicolo-ribaudo

Description

@nicolo-ribaudo

💻

  • Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

tag`abc\u{1000_0000}`

Configuration file name

No response

Configuration

No response

Current and expected behavior

@babel/parser throws "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences", but it is a valid template literal.

Environment

/

Possible solution

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions