js-confuser
                                
                                 js-confuser copied to clipboard
                                
                                    js-confuser copied to clipboard
                            
                            
                            
                        Control Flow Flattening breaks strict-mode redefined function declaration
Config and Small code sample
Config:
{
  target: "node",
  controlFlowFlattening: true
}
Code:
"use strict";
var myFunction = function () {
  console.log("Inner");
};
if (true) {
  function myFunction() {
    console.log("Outer");
  }
}
myFunction();
Expected behavior
The program should output "Inner"
Actual behavior
The program outputs "Outer"