Closed loilo closed 7 years ago
From trying to squash appbase-js.
This is kind of a regression error in 0.4.5.
Consider this input:
function fn () { return function any_fn ( any_var ){ var any_var = 1 any_fn( any_var ) }() }
In 0.4.4, Butternut removed the any_fn name of the inner function. This has been fixed in 0.4.5.
any_fn
However, Butternut now collapses the whitespace between the function keyword and the any_fn (mangled to a) name:
function
a
Output:
function fn(){return functiona(b){var b=1;a(b)}()}
From trying to squash appbase-js.
This is kind of a regression error in 0.4.5.
Consider this input:
In 0.4.4, Butternut removed the
any_fn
name of the inner function. This has been fixed in 0.4.5.However, Butternut now collapses the whitespace between the
function
keyword and theany_fn
(mangled toa
) name:Output: