From e8158279ff08af915c634eeec4cfabda1ff4022e Mon Sep 17 00:00:00 2001 From: Dan Wolff Date: Fri, 20 Sep 2013 06:24:25 +0200 Subject: Evaluate [...].join() if possible: minor bugfix Follow-up to 78e98d2. --- test/compress/arrays.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/compress/arrays.js b/test/compress/arrays.js index 214928dd..06e03ae4 100644 --- a/test/compress/arrays.js +++ b/test/compress/arrays.js @@ -23,11 +23,13 @@ constant_join: { var b = [ "foo", 1, 2, 3, "bar" ].join(""); var c = [ boo(), "foo", 1, 2, 3, "bar", bar() ].join(""); var d = [ "foo", 1 + 2 + "bar", "baz" ].join("-"); + var e = [].join(foo + bar); } expect: { var a = "foobarbaz"; var b = "foo123bar"; var c = [ boo(), "foo", 1, 2, 3, "bar", bar() ].join(""); // we could still shorten this one, but oh well. var d = "foo-3bar-baz"; + var e = [].join(foo + bar); } } -- cgit v1.2.3