diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-02-09 06:21:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 14:21:15 +0800 |
commit | 14fedbf123a5d8a86621ac6aa996042ee0011b47 (patch) | |
tree | 4edc82f707dc9a66f316c6d05ad4fabffbe8fb6d /test/compress/templates.js | |
parent | fcee32527bd251febeb7b45251d33756fcee207e (diff) | |
download | tracifyjs-14fedbf123a5d8a86621ac6aa996042ee0011b47.tar.gz tracifyjs-14fedbf123a5d8a86621ac6aa996042ee0011b47.zip |
fix corner case with template literals (#4631)
fixes #4630
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 0be46df0..8ea4d396 100644 --- a/test/compress/templates.js +++ b/test/compress/templates.js @@ -283,3 +283,18 @@ issue_4606: { expect_stdout: "undefined \r \\ `" node_version: ">=4" } + +issue_4630: { + options = { + evaluate: true, + templates: true, + } + input: { + console.log(`${/PASS/}`); + } + expect: { + console.log("/PASS/"); + } + expect_stdout: "/PASS/" + node_version: ">=4" +} |