improve unused efficiency (#3813)

This commit is contained in:
Alex Lam S.L
2020-04-23 01:31:35 +01:00
committed by GitHub
parent 3ae24329eb
commit 99cf3a38c5
3 changed files with 39 additions and 43 deletions

View File

@@ -46,7 +46,7 @@ simple_statement_is_not_a_directive: {
drop_lone_use_strict: {
options = {
directives: true,
side_effects: true,
unused: true,
}
input: {
function f1() {
@@ -66,10 +66,8 @@ drop_lone_use_strict: {
function f1() {
}
function f2() {
"use strict";
function f3() {
}
}
(function() {})();
}
}