11//// [invalidTaggedTemplateEscapeSequences.ts]
2- function tag ( str : any , ...args : any [ ] ) : any {
3- return str
4- }
5-
6- const a = tag `123`
7- const b = tag `123 ${ 100 } `
8- const x = tag `\u{hello } ${ 100 } \xtraordinary ${ 200 } wonderful ${ 300 } \uworld ` ;
9- const y = `\u{hello } ${ 100 } \xtraordinary $ { 200 } wonderful $ { 300 } \uworld `; // should error with NoSubstitutionTemplate
10- const z = tag` \u{hello } \xtraordinary wonderful \uworld ` // should work with Tagged NoSubstitutionTemplate
11-
12- const a1 = tag` $ { 100 } \0` // \0
13- const a2 = tag` $ { 100 } \00` // \\00
14- const a3 = tag` $ { 100 } \u` // \\u
15- const a4 = tag` $ { 100 } \u0` // \\u0
16- const a5 = tag` $ { 100 } \u00` // \\u00
17- const a6 = tag` $ { 100 } \u000` // \\u000
18- const a7 = tag` $ { 100 } \u0000 ` // \u0000
19- const a8 = tag` $ { 100 } \u{` // \\u{
20- const a9 = tag` $ { 100 } \u{10FFFF} ` // \\u{10FFFF
21- const a10 = tag` $ { 100 } \u{1f622` // \\u{1f622
22- const a11 = tag` $ { 100 } \u{1f622} ` // \u{1f622}
23- const a12 = tag` $ { 100 } \x` // \\x
24- const a13 = tag` $ { 100 } \x0` // \\x0
25- const a14 = tag` $ { 100 } \x00` // \x00
2+ function tag ( str : any , ...args : any [ ] ) : any {
3+ return str
4+ }
5+
6+ const a = tag `123`
7+ const b = tag `123 ${ 100 } `
8+ const x = tag `\u{hello } ${ 100 } \xtraordinary ${ 200 } wonderful ${ 300 } \uworld ` ;
9+ const y = `\u{hello } ${ 100 } \xtraordinary $ { 200 } wonderful $ { 300 } \uworld `; // should error with NoSubstitutionTemplate
10+ const z = tag` \u{hello } \xtraordinary wonderful \uworld ` // should work with Tagged NoSubstitutionTemplate
11+
12+ const a1 = tag` $ { 100 } \0` // \0
13+ const a2 = tag` $ { 100 } \00` // \\00
14+ const a3 = tag` $ { 100 } \u` // \\u
15+ const a4 = tag` $ { 100 } \u0` // \\u0
16+ const a5 = tag` $ { 100 } \u00` // \\u00
17+ const a6 = tag` $ { 100 } \u000` // \\u000
18+ const a7 = tag` $ { 100 } \u0000 ` // \u0000
19+ const a8 = tag` $ { 100 } \u{` // \\u{
20+ const a9 = tag` $ { 100 } \u{10FFFF} ` // \\u{10FFFF
21+ const a10 = tag` $ { 100 } \u{1f622` // \\u{1f622
22+ const a11 = tag` $ { 100 } \u{1f622} ` // \u{1f622}
23+ const a12 = tag` $ { 100 } \x` // \\x
24+ const a13 = tag` $ { 100 } \x0` // \\x0
25+ const a14 = tag` $ { 100 } \x00` // \x00
2626
2727
2828//// [invalidTaggedTemplateEscapeSequences.js]
@@ -39,20 +39,20 @@ function tag(str) {
3939}
4040var a = tag(__makeTemplateObject(["123"], ["123"]));
4141var b = tag(__makeTemplateObject(["123 ", ""], ["123 ", ""]), 100);
42- var x = tag(__makeTemplateObject([undefined, undefined , " wonderful ", undefined ], ["\\u{hello} ", " \\xtraordinary ", " wonderful ", " \\uworld"]), 100, 200, 300);
42+ var x = tag(__makeTemplateObject([void 0, void 0 , " wonderful ", void 0 ], ["\\u{hello} ", " \\xtraordinary ", " wonderful ", " \\uworld"]), 100, 200, 300);
4343var y = "hello} " + 100 + " traordinary " + 200 + " wonderful " + 300 + " world"; // should error with NoSubstitutionTemplate
44- var z = tag(__makeTemplateObject([undefined ], ["\\u{hello} \\xtraordinary wonderful \\uworld"])); // should work with Tagged NoSubstitutionTemplate
44+ var z = tag(__makeTemplateObject([void 0 ], ["\\u{hello} \\xtraordinary wonderful \\uworld"])); // should work with Tagged NoSubstitutionTemplate
4545var a1 = tag(__makeTemplateObject(["", "\0"], ["", "\\0"]), 100); // \0
46- var a2 = tag(__makeTemplateObject(["", undefined ], ["", "\\00"]), 100); // \\00
47- var a3 = tag(__makeTemplateObject(["", undefined ], ["", "\\u"]), 100); // \\u
48- var a4 = tag(__makeTemplateObject(["", undefined ], ["", "\\u0"]), 100); // \\u0
49- var a5 = tag(__makeTemplateObject(["", undefined ], ["", "\\u00"]), 100); // \\u00
50- var a6 = tag(__makeTemplateObject(["", undefined ], ["", "\\u000"]), 100); // \\u000
46+ var a2 = tag(__makeTemplateObject(["", void 0 ], ["", "\\00"]), 100); // \\00
47+ var a3 = tag(__makeTemplateObject(["", void 0 ], ["", "\\u"]), 100); // \\u
48+ var a4 = tag(__makeTemplateObject(["", void 0 ], ["", "\\u0"]), 100); // \\u0
49+ var a5 = tag(__makeTemplateObject(["", void 0 ], ["", "\\u00"]), 100); // \\u00
50+ var a6 = tag(__makeTemplateObject(["", void 0 ], ["", "\\u000"]), 100); // \\u000
5151var a7 = tag(__makeTemplateObject(["", "\0"], ["", "\\u0000"]), 100); // \u0000
52- var a8 = tag(__makeTemplateObject(["", undefined ], ["", "\\u{"]), 100); // \\u{
52+ var a8 = tag(__makeTemplateObject(["", void 0 ], ["", "\\u{"]), 100); // \\u{
5353var a9 = tag(__makeTemplateObject(["", "\uDBFF\uDFFF"], ["", "\\u{10FFFF}"]), 100); // \\u{10FFFF
54- var a10 = tag(__makeTemplateObject(["", undefined ], ["", "\\u{1f622"]), 100); // \\u{1f622
54+ var a10 = tag(__makeTemplateObject(["", void 0 ], ["", "\\u{1f622"]), 100); // \\u{1f622
5555var a11 = tag(__makeTemplateObject(["", "\uD83D\uDE22"], ["", "\\u{1f622}"]), 100); // \u{1f622}
56- var a12 = tag(__makeTemplateObject(["", undefined ], ["", "\\x"]), 100); // \\x
57- var a13 = tag(__makeTemplateObject(["", undefined ], ["", "\\x0"]), 100); // \\x0
56+ var a12 = tag(__makeTemplateObject(["", void 0 ], ["", "\\x"]), 100); // \\x
57+ var a13 = tag(__makeTemplateObject(["", void 0 ], ["", "\\x0"]), 100); // \\x0
5858var a14 = tag(__makeTemplateObject(["", "\0"], ["", "\\x00"]), 100); // \x00
0 commit comments