Fixed issue where template expression in call expressions would emit with unnecessary parentheses.

Fixes #1205.
This commit is contained in:
Daniel Rosenwasser
2014-11-19 17:04:34 -08:00
parent 8b35beaa1c
commit f51a42c6de
19 changed files with 117 additions and 24 deletions

View File

@@ -0,0 +1 @@
`abc${0}abc`(`hello ${0} world`, ` `, `1${2}3`);

View File

@@ -0,0 +1,2 @@
// @target: ES6
`abc${0}abc`(`hello ${0} world`, ` `, `1${2}3`);

View File

@@ -0,0 +1 @@
new `abc${0}abc`(`hello ${0} world`, ` `, `1${2}3`);

View File

@@ -0,0 +1,2 @@
// @target: ES6
new `abc${0}abc`(`hello ${0} world`, ` `, `1${2}3`);

View File

@@ -0,0 +1 @@
`I AM THE ${ `${ `TAG` } ` } PORTION` `I ${ "AM" } THE TEMPLATE PORTION`

View File

@@ -0,0 +1,2 @@
// @target: ES6
`I AM THE ${ `${ `TAG` } ` } PORTION` `I ${ "AM" } THE TEMPLATE PORTION`