Skip to content

[Bug]: Numeric separators broken #14425

@austindonisan

Description

@austindonisan

💻

  • Would you like to work on a fix?

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

1_1

Configuration file name

No response

Configuration

No response

Current and expected behavior

Currently throws error:

/repl.jsx: A numeric separator is only allowed between two digits. (1:1)

> 1 | 1_1
    |  ^

Expected output:

"use strict";

11;

Environment

Babel REPL version 7.17.8

Possible solution

No response

Additional context

Works in 7.17.6, broken in 7.17.7

I'm guessing #14338 broke it

Metadata

Metadata

Assignees

No one assigned

    Labels

    i: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: standalone

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions