From 037199bfe2e60ceca0b39fca20f833b02d6c85db Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Sun, 22 Sep 2013 14:54:32 +0300 Subject: Actually let's move away those monsters from the evaluate function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ev() should do a single thing — evaluate constant expressions. if that's not possible, just return the original node. it's not the best place for partial evaluation there, instead doing it in the compress functions. --- test/compress/arrays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/compress') diff --git a/test/compress/arrays.js b/test/compress/arrays.js index 5fb21a8b..766ec484 100644 --- a/test/compress/arrays.js +++ b/test/compress/arrays.js @@ -69,6 +69,6 @@ constant_join_2: { var e = [ "foo", "bar", boo(), "foo+1+2+3+bar", "baz", "x", "y" ].join("really-long-separator"); - var f = "str" + ("str" + variable) + "foobar" + ("moo" + foo); + var f = "strstr" + variable + "foobar" + ("moo" + foo); } } -- cgit v1.2.3