Skip to content

Number separator failing: Identifier directly after number #9768

@amejiarosario

Description

@amejiarosario

🐛 Bug Report

From Node.js 12.5.0, there's support for Number separators. However, Jest doesn't seem to recognize it.

It returns this error:
Identifier directly after number

To Reproduce

Steps to reproduce the behavior:

Include a number separator in the code. E.g. const n = {1_000: 'Thousand'};.

image

Expected behavior

It should work without problems. I tried in the node.js console and it's working.

Link to repl or repo (highly encouraged)

Repo: amejiarosario/dsa.js-data-structures-algorithms-javascript@02034a3#diff-3599aee56da29942b69dc0f309f6f5ab

envinfo

  System:
    OS: macOS Mojave 10.14.6
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 12.16.1 - ~/.asdf/installs/nodejs/12.16.1/bin/node
    npm: 6.14.4 - ~/Code/dsa.js/node_modules/.bin/npm
  npmPackages:
    jest: 25.2.7 => 25.2.7 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions