Merge pull request #794 from fabiosantoscode/feature/harmony-template-strings-2
Harmony: template strings
This commit is contained in:
@@ -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 ) { });
|
||||
|
||||
Reference in New Issue
Block a user