js-confuser icon indicating copy to clipboard operation
js-confuser copied to clipboard

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

Open georgeians opened this issue 2 years ago • 1 comments

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.

georgeians avatar Sep 28 '23 21:09 georgeians

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?

Le0Developer avatar Nov 28 '23 13:11 Le0Developer