add es6.spec.templateLiterals transformer and rename es6.symbols to es6.spec.symbols

This commit is contained in:
Sebastian McKenzie
2015-03-30 16:41:13 +11:00
parent dc1ba58705
commit bc155f956c
47 changed files with 57 additions and 14 deletions

View File

@@ -0,0 +1,3 @@
{
"optional": ["es6.spec.templateLiterals"]
}

View File

@@ -0,0 +1 @@
var t = `'${foo}' "${bar}"`;

View File

@@ -0,0 +1,3 @@
"use strict";
var t = "'" + foo + "' \"" + bar + "\"";

View File

@@ -0,0 +1 @@
var foo = `test ${_.test(foo)} ${bar}`;

View File

@@ -0,0 +1,3 @@
"use strict";
var foo = "test " + _.test(foo) + " " + bar;

View File

@@ -0,0 +1,3 @@
var o = `wow
this is
actually multiline!`;

View File

@@ -0,0 +1,3 @@
"use strict";
var o = "wow\nthis is\nactually multiline!";

View File

@@ -0,0 +1 @@
var foo = `test ${foo} ${bar}`;

View File

@@ -0,0 +1,3 @@
"use strict";
var foo = "test " + foo + " " + bar;

View File

@@ -0,0 +1 @@
var foo = `test`;

View File

@@ -0,0 +1,3 @@
"use strict";
var foo = "test";

View File

@@ -0,0 +1 @@
var foo = `${test}`;

View File

@@ -0,0 +1,3 @@
"use strict";
var foo = "" + test;

View File

@@ -0,0 +1 @@
var foo = `test ${foo}`;

View File

@@ -0,0 +1,3 @@
"use strict";
var foo = "test " + foo;

View File

@@ -0,0 +1 @@
var foo = `test ${foo + bar}`;

View File

@@ -0,0 +1,3 @@
"use strict";
var foo = "test " + (foo + bar);