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.
This commit is contained in:
Mihai Bazon
2013-09-22 14:54:32 +03:00
parent 583fac0a0f
commit 037199bfe2
2 changed files with 83 additions and 82 deletions

View File

@@ -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);
}
}