Files
UglifyJS/test/compress/issue-1052.js
2016-04-23 23:48:33 +02:00

28 lines
573 B
JavaScript

hoist_funs_when_handling_if_return_rerversal: {
options = { if_return: true, hoist_funs: false };
input: {
"use strict";
( function() {
if ( !window ) {
return;
}
function f() {}
function g() {}
} )();
}
expect: {
"use strict";
( function() {
function f() {}
function g() {}
// NOTE: other compression steps will reduce this
// down to just `window`.
if ( window );
} )();
}
}