js-confuser
js-confuser copied to clipboard
SyntaxError: Unexpected character '🧩' (1:6)
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.
Can not reproduce on https://js-confuser.com
Also the title of the issue seems completely unrelated? Which one is it, an SyntaxError or infinite loop?