MichaelXF / js-confuser

JS-Confuser is a JavaScript obfuscation tool to make your programs *impossible* to read.
https://js-confuser.com
MIT License
204 stars 32 forks source link

BigInt literals are converted to normal numbers #79

Closed Le0Developer closed 1 year ago

Le0Developer commented 1 year ago

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)

MichaelXF commented 1 year ago

Good find, I will start working on this now.