aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-09-22 14:54:32 +0300
committerMihai Bazon <mihai@bazon.net>2013-09-22 15:00:42 +0300
commit037199bfe2e60ceca0b39fca20f833b02d6c85db (patch)
tree62b9b57a31fca03326a2b7da3ed8673bf84ce9de /test
parent583fac0a0f4f5ae9b71a051730b4834a190f6387 (diff)
downloadtracifyjs-037199bfe2e60ceca0b39fca20f833b02d6c85db.tar.gz
tracifyjs-037199bfe2e60ceca0b39fca20f833b02d6c85db.zip
Actually let's move away those monsters from the evaluate function
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.
Diffstat (limited to 'test')
-rw-r--r--test/compress/arrays.js2
1 files changed, 1 insertions, 1 deletions
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);
}
}