swc/ecmascript/codegen/tests/references/5b9f113c3bdd0c49.js

23 lines
480 B
JavaScript
Raw Normal View History

function a() {
b();
c = 1;
2020-07-28 15:56:19 +03:00
throw "d";
// completely discarding the `if` would introduce some
// bugs. UglifyJS v1 doesn't deal with this issue; in v2
// we copy any declarations to the upper scope.
if (c) {
e();
var c;
function b() {
}
;
// but nested declarations should not be kept.
(function() {
var f;
function e() {
}
;
})();
}
}