Merge pull request #1733 from hzoo/i-1732

remove empty strings from beginning of template - fixes #1732
This commit is contained in:
Sebastian McKenzie
2015-06-15 10:46:28 +01:00
3 changed files with 34 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
const foo = 5;
const bar = 10;
const baz = 15;
const example = `${"a"}`;
const example2 = `${1}`;
const example3 = 1 + `${foo}${bar}${baz}`;
const example4 = 1 + `${foo}bar${baz}`;

View File

@@ -0,0 +1,10 @@
"use strict";
var foo = 5;
var bar = 10;
var baz = 15;
var example = "a";
var example2 = "" + 1;
var example3 = 1 + ("" + foo + bar + baz);
var example4 = 1 + (foo + "bar" + baz);