diff options
author | 2023-04-12 17:42:56 -0700 | |
---|---|---|
committer | 2023-04-12 17:42:56 -0700 | |
commit | d8d4abb58e1179800e2a72834e6506ec49384a7b (patch) | |
tree | a42bc2c6b8fe38041288e8269145a948332bca9d /test/bundler/transpiler.test.js | |
parent | 4b9b648f8a571a040fa749093b96b5a629cec45d (diff) | |
download | bun-d8d4abb58e1179800e2a72834e6506ec49384a7b.tar.gz bun-d8d4abb58e1179800e2a72834e6506ec49384a7b.tar.zst bun-d8d4abb58e1179800e2a72834e6506ec49384a7b.zip |
don't increment `i` if escaped (#2639)
Diffstat (limited to '')
-rw-r--r-- | test/bundler/transpiler.test.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/bundler/transpiler.test.js b/test/bundler/transpiler.test.js index da7a7d00d..cde968f80 100644 --- a/test/bundler/transpiler.test.js +++ b/test/bundler/transpiler.test.js @@ -2952,6 +2952,9 @@ console.log(foo, array); it('`str` + "``"', () => { expectPrinted_('const x = `str` + "``";', "const x = `str\\`\\``"); + expectPrinted_('const x = `` + "`";', "const x = `\\``"); + expectPrinted_('const x = `` + "``";', "const x = `\\`\\``"); + expectPrinted_('const x = "``" + ``;', 'const x = "``"'); }); }); }); |