Bug 1050164 - Investigate to implement standalone shrinking library

https://bugzilla.mozilla.org/show_bug.cgi?id=1050164
Why we need remove ES6 function here?