prefixed template strings, like "String.rawfoo\nbar".

This commit is contained in:
Fábio Santos
2015-09-05 22:48:17 +01:00
parent e1cb1a0e3c
commit 242c61be94
4 changed files with 31 additions and 0 deletions

View File

@@ -56,6 +56,14 @@ template_strings: {
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 ) { });