shapesecurity / unminify

reverse many of the transformations applied by minifiers and naïve obfuscators
https://unminify.io/
Apache License 2.0
209 stars 17 forks source link

Function inlining #2

Open michaelficarra opened 6 years ago

michaelficarra commented 6 years ago

It is sometimes of value to inline statically known functions (not methods) into their call sites, as long as any through references would remain the same.

Since in general this might cause a great deal of bloat, maybe have some heuristics about when to do this? Alternatively, a whitelist of function names to do this for.