Merge pull request #794 from fabiosantoscode/feature/harmony-template-strings-2

Harmony: template strings
This commit is contained in:
Richard van Velzen
2015-09-08 21:23:41 +02:00
4 changed files with 110 additions and 1 deletions

View File

@@ -46,6 +46,24 @@ typeof_arrow_functions: {
expect_exact: "\"function\";"
}
template_strings: {
input: {
``;
`xx\`x`;
`${ foo + 2 }`;
` foo ${ bar + `baz ${ qux }` }`;
}
expect_exact: "``;`xx\\`x`;`${foo+2}`;` foo ${bar+`baz ${qux}`}`;";
}
template_string_prefixes: {
input: {
String.raw`foo`;
foo `bar`;
}
expect_exact: "String.raw`foo`;foo`bar`;";
}
destructuring_arguments: {
input: {
(function ( a ) { });