aboutsummaryrefslogtreecommitdiff
path: root/test/bundler/transpiler.test.js
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-04-12 17:42:56 -0700
committerGravatar GitHub <noreply@github.com> 2023-04-12 17:42:56 -0700
commitd8d4abb58e1179800e2a72834e6506ec49384a7b (patch)
treea42bc2c6b8fe38041288e8269145a948332bca9d /test/bundler/transpiler.test.js
parent4b9b648f8a571a040fa749093b96b5a629cec45d (diff)
downloadbun-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.js3
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 = "``"');
});
});
});