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

Duplicate Literals Removal causes syntax error #105

Closed MichaelXF closed 1 year ago

MichaelXF commented 1 year ago

Describe the bug:

Duplicate Literals Removal causes syntax error

Config and Small code sample

Config:

{
  duplicateLiteralsRemoval: true,
  target: 'node',
}

Code:

var undefined = 0;
var undefined = 1;

Error:

Uncaught SyntaxError: Unexpected token '('