Skip to content

Commit 170bc6f

Browse files
author
Francois Wouts
committed
Add test for microsoft#18071
1 parent 884cadf commit 170bc6f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/harness/unittests/printer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ namespace ts {
5656

5757
// github #14948
5858
printsCorrectly("templateLiteral", {}, printer => printer.printFile(createSourceFile("source.ts", "let greeting = `Hi ${name}, how are you?`;", ScriptTarget.ES2017)));
59+
60+
// github #18071
61+
printsCorrectly("regularExpressionLiteral", {}, printer => printer.printFile(createSourceFile("source.ts", "let regex = /abc/;", ScriptTarget.ES2017)));
5962
});
6063

6164
describe("printBundle", () => {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let regex = /abc/;

0 commit comments

Comments
 (0)