MichaelXF / js-confuser

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

SyntaxError: Unexpected character '🧩' (1:6) #110

Open georgeians opened 9 months ago

georgeians commented 9 months ago

Describe the bug:

The program gets stuck in a infinite loop

Config and Small code sample

Config:

{
  target: "node",
  preset: "high"
}

Code:

console.log("My Small Code Sample");

Expected behavior

The program should output "My Small Code Sample"

Actual behavior

The program stalls forever and never outputs anything

Additional context

Seems the program gets stuck in a infinite loop due to Control Flow Flattening. Disabling the feature seems to rid of the bug.

Le0Developer commented 7 months ago

Can not reproduce on https://js-confuser.com

image

Also the title of the issue seems completely unrelated? Which one is it, an SyntaxError or infinite loop?