-hoist_funs_when_handling_if_return_rerversal: {
+multiple_functions: {
options = { if_return: true, hoist_funs: false };
input: {
- "use strict";
-
( function() {
if ( !window ) {
return;
} )();
}
expect: {
- "use strict";
-
( function() {
function f() {}
function g() {}
} )();
}
}
+
+single_function: {
+ options = { if_return: true, hoist_funs: false };
+ input: {
+ ( function() {
+ if ( !window ) {
+ return;
+ }
+
+ function f() {}
+ } )();
+ }
+ expect: {
+ ( function() {
+ function f() {}
+
+ if ( window );
+ } )();
+ }
+}