From 1283d738539b4f899e4941f556b516c071bfa55a Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 29 Nov 2019 18:57:29 +0800 Subject: fix corner case in parsing directives (#3615) --- test/compress/functions.js | 51 ---------------------------------------------- 1 file changed, 51 deletions(-) (limited to 'test/compress/functions.js') diff --git a/test/compress/functions.js b/test/compress/functions.js index 8795afb1..4fea42dc 100644 --- a/test/compress/functions.js +++ b/test/compress/functions.js @@ -2004,57 +2004,6 @@ deduplicate_parenthesis: { expect_exact: "({}).a=b;({}.a=b)();(function(){}).a=b;(function(){}.a=b)();" } -drop_lone_use_strict: { - options = { - directives: true, - side_effects: true, - } - input: { - function f1() { - "use strict"; - } - function f2() { - "use strict"; - function f3() { - "use strict"; - } - } - (function f4() { - "use strict"; - })(); - } - expect: { - function f1() { - } - function f2() { - "use strict"; - function f3() { - } - } - } -} - -issue_3166: { - options = { - directives: true, - } - input: { - "foo"; - "use strict"; - function f() { - "use strict"; - "bar"; - "use asm"; - } - } - expect: { - "use strict"; - function f() { - "use asm"; - } - } -} - issue_3016_1: { options = { inline: true, -- cgit v1.2.3