Parse and output ES6 template strings. Yikes!

This commit is contained in:
Fábio Santos
2015-09-05 22:32:57 +01:00
parent af22b9c657
commit e1cb1a0e3c
4 changed files with 79 additions and 1 deletions

View File

@@ -46,6 +46,16 @@ 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}`}`;";
}
destructuring_arguments: {
input: {
(function ( a ) { });