diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-02-01 18:29:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 02:29:43 +0800 |
commit | 7110c6923b8ef82f295f5d9ff9d42d2f88432810 (patch) | |
tree | 94758b380b5deecd59be324fffc429f429dbc663 /test/compress/templates.js | |
parent | b27b6807cb01b6068cecda435b6b6b2a2ef5af07 (diff) | |
download | tracifyjs-7110c6923b8ef82f295f5d9ff9d42d2f88432810.tar.gz tracifyjs-7110c6923b8ef82f295f5d9ff9d42d2f88432810.zip |
fix corner case in `templates` (#4607)
fixes #4606
Diffstat (limited to 'test/compress/templates.js')
-rw-r--r-- | test/compress/templates.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/compress/templates.js b/test/compress/templates.js index 3b0e983c..3c7957f8 100644 --- a/test/compress/templates.js +++ b/test/compress/templates.js @@ -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" +} |