@@ -2,13 +2,15 @@ tests/cases/compiler/templateLiteralInvalidEscape.ts(11,4): error TS1125: Hexade
2
2
tests/cases/compiler/templateLiteralInvalidEscape.ts(12,5): error TS1125: Hexadecimal digit expected.
3
3
tests/cases/compiler/templateLiteralInvalidEscape.ts(13,6): error TS1125: Hexadecimal digit expected.
4
4
tests/cases/compiler/templateLiteralInvalidEscape.ts(14,5): error TS1125: Hexadecimal digit expected.
5
+ tests/cases/compiler/templateLiteralInvalidEscape.ts(15,4): error TS1392: Octal escape sequences are not allowed in template strings.
5
6
tests/cases/compiler/templateLiteralInvalidEscape.ts(23,8): error TS1125: Hexadecimal digit expected.
6
7
tests/cases/compiler/templateLiteralInvalidEscape.ts(24,9): error TS1125: Hexadecimal digit expected.
7
8
tests/cases/compiler/templateLiteralInvalidEscape.ts(25,10): error TS1125: Hexadecimal digit expected.
8
9
tests/cases/compiler/templateLiteralInvalidEscape.ts(26,9): error TS1125: Hexadecimal digit expected.
10
+ tests/cases/compiler/templateLiteralInvalidEscape.ts(27,8): error TS1392: Octal escape sequences are not allowed in template strings.
9
11
10
12
11
- ==== tests/cases/compiler/templateLiteralInvalidEscape.ts (8 errors) ====
13
+ ==== tests/cases/compiler/templateLiteralInvalidEscape.ts (10 errors) ====
12
14
function raw(arr: TemplateStringsArray, ...args: unknown[]) {
13
15
return arr.raw;
14
16
}
@@ -32,6 +34,8 @@ tests/cases/compiler/templateLiteralInvalidEscape.ts(26,9): error TS1125: Hexade
32
34
33
35
!!! error TS1125: Hexadecimal digit expected.
34
36
`\0123`;
37
+
38
+ !!! error TS1392: Octal escape sequences are not allowed in template strings.
35
39
36
40
raw`${0}\x`;
37
41
raw`${0}\x0`;
@@ -52,4 +56,6 @@ tests/cases/compiler/templateLiteralInvalidEscape.ts(26,9): error TS1125: Hexade
52
56
53
57
!!! error TS1125: Hexadecimal digit expected.
54
58
`${0}\0123`;
59
+
60
+ !!! error TS1392: Octal escape sequences are not allowed in template strings.
55
61
0 commit comments