diff --git a/data/js/keywords_before.txt b/data/js/keywords_before.txt index 098ee77..40b4ec0 100644 --- a/data/js/keywords_before.txt +++ b/data/js/keywords_before.txt @@ -15,7 +15,6 @@ delete export import public -return static typeof extends diff --git a/tests/js/JSTest.php b/tests/js/JSTest.php index 2f5934c..02ebe22 100644 --- a/tests/js/JSTest.php +++ b/tests/js/JSTest.php @@ -575,6 +575,20 @@ function foo(a,b){return a/b}', return !1;return !0}', ); + // https://github.com/matthiasmullie/minify/issues/54 + $tests[] = array( + 'function a() { + if (true) + return + if (false) + return +}', + 'function a(){if(!0) +return +if(!1) +return}', + ); + return $tests; } }