I was looking for a way to decompile JavaScript that was compiled by Google Closure. I did find a Decompiler class (https://code.google.com/p/closure-compiler/source/browse/lib/rhino/src/org/mozilla/javascript/Decompiler.java?name=v20140407), however I haven't had much luck with it.
Anyone try this before or know of some other method?
Usually, I just run the code through the Closure Compiler in WHITESPACE mode and enable the pretty printing options.
来源:https://stackoverflow.com/questions/9321648/google-closure-decompiler