Closed krk closed 8 years ago
@krk this is unsafe anyway, you should use "falseundefined".charAt(10)
for guaranteed browser support IE5-7.
It is generated code by http://www.jsfuck.com/ and I was wondering if closure can "unfuck" it. Fuck is related to the Brainfuck language.
Fun, but probably a non-goal for Closure Compiler.
That said, it might be a fun side project for someone to do. Check out https://github.com/google/closure-compiler/wiki/Writing-Compiler-Pass if interested.
Could potentially be a peephole optimization.
ended up writing jsunfuck: https://github.com/krk/jsunfuck
Input:
Output:
Expected: