From 8287ef67810f2332459fa157b26e556f55b36b98 Mon Sep 17 00:00:00 2001 From: Anthony Van de Gejuchte Date: Tue, 7 Jun 2016 01:33:13 +0200 Subject: Fix uglify attempting to rewrite invalid new expressions --- test/compress/new.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/compress') diff --git a/test/compress/new.js b/test/compress/new.js index 4b2c51c3..d956ae27 100644 --- a/test/compress/new.js +++ b/test/compress/new.js @@ -10,3 +10,11 @@ new_statement: { } expect_exact: "new x(1);new x(1)(2);new x(1)(2)(3);new new x(1);new new x(1)(2);new new x(1)(2);(new new x(1))(2);" } + +new_with_rewritten_true_value: { + options = { booleans: true } + input: { + new true; + } + expect_exact: "new(!0);" +} -- cgit v1.2.3