move up template literal simplification logic - fixes #1874

This commit is contained in:
Sebastian McKenzie
2015-06-29 23:36:06 +01:00
parent d63ae5fce8
commit e55ce575cd
3 changed files with 11 additions and 13 deletions

View File

@@ -6,3 +6,4 @@ const example = `${"a"}`;
const example2 = `${1}`;
const example3 = 1 + `${foo}${bar}${baz}`;
const example4 = 1 + `${foo}bar${baz}`;
const example5 = `${""}`;

View File

@@ -8,3 +8,4 @@ var example = "a";
var example2 = "" + 1;
var example3 = 1 + ("" + foo + bar + baz);
var example4 = 1 + (foo + "bar" + baz);
var example5 = "";