aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Wolff <dan.d.wolff@gmail.com>2013-09-20 06:24:25 +0200
committerMihai Bazon <mihai@bazon.net>2013-09-22 11:34:30 +0300
commite8158279ff08af915c634eeec4cfabda1ff4022e (patch)
tree3b98eb7dfd1ef07cee71e430c44cd47ea3abb437 /test
parent78e98d2611f5698797785adbd12faf2ba46ec783 (diff)
downloadtracifyjs-e8158279ff08af915c634eeec4cfabda1ff4022e.tar.gz
tracifyjs-e8158279ff08af915c634eeec4cfabda1ff4022e.zip
Evaluate [...].join() if possible: minor bugfix
Follow-up to 78e98d2.
Diffstat (limited to 'test')
-rw-r--r--test/compress/arrays.js2
1 files changed, 2 insertions, 0 deletions
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);
}
}