js-confuser
js-confuser copied to clipboard
feat: Generator functions for control flow flattening
The generator function or function* provides a useful yield expression that can be used to divert control flow. This can be used instead of a break statement as a more versatile option for obfuscating the code.
This would allow Control Flow Flattening to obfuscate code even more than what it can do currently. This could be added to control flow flattening or it's own transformation.