Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigInt literals are converted to normal numbers #79

Closed
Le0Developer opened this issue May 17, 2023 · 1 comment
Closed

BigInt literals are converted to normal numbers #79

Le0Developer opened this issue May 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Le0Developer
Copy link

Describe the bug:

BigInt literals (like 1n) are converted to normal numbers (1).

Config and Small code sample

Config:

{
    "compact": true,
    "hexadecimalNumbers": true,
    "identifierGenerator": "randomized",
    "minify": true,
    "shuffle": "false",
    "target": "browser"
}

Code:

console.log(1n);

Expected behavior

Compiles to console.log(1n)

Actual behavior

Compiles to console.log(1)

@Le0Developer Le0Developer added the bug Something isn't working label May 17, 2023
@MichaelXF
Copy link
Owner

Good find, I will start working on this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants