fix corner case in templates (#4607)

fixes #4606
This commit is contained in:
Alex Lam S.L
2021-02-01 18:29:43 +00:00
committed by GitHub
parent b27b6807cb
commit 7110c6923b
2 changed files with 18 additions and 1 deletions

View File

@@ -222,3 +222,18 @@ issue_4604: {
expect_stdout: "PASS"
node_version: ">=4"
}
issue_4606: {
options = {
evaluate: true,
templates: true,
}
input: {
console.log(`${typeof A} ${"\r"} ${"\\"} ${"`"}`);
}
expect: {
console.log(`${typeof A} \r \\ \``);
}
expect_stdout: "undefined \r \\ `"
node_version: ">=4"
}