diff options
author | 2023-01-16 15:21:11 -0800 | |
---|---|---|
committer | 2023-01-16 15:21:11 -0800 | |
commit | 34845028398b47973f123deb0f6f1863634b1445 (patch) | |
tree | 233c56a12705aef308c43f060b4e4efd722337b0 /test/bun.js/transpiler.test.js | |
parent | a345efd270bcd19672b13b363d287354113b7aba (diff) | |
download | bun-34845028398b47973f123deb0f6f1863634b1445.tar.gz bun-34845028398b47973f123deb0f6f1863634b1445.tar.zst bun-34845028398b47973f123deb0f6f1863634b1445.zip |
[JS Parser] Don't inline rope strings
Diffstat (limited to 'test/bun.js/transpiler.test.js')
-rw-r--r-- | test/bun.js/transpiler.test.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/bun.js/transpiler.test.js b/test/bun.js/transpiler.test.js index 05607091a..dcc7f397a 100644 --- a/test/bun.js/transpiler.test.js +++ b/test/bun.js/transpiler.test.js @@ -1774,12 +1774,17 @@ class Foo { check( ` -const a = "[^aeiou]"; -const b = a + "[^aeiouy]*"; -console.log(a, b); +const a = "a"; +const c = "b" + a; +const b = c + a; +const d = b + a; +console.log(a, b, c, d); `, ` -console.log("[^aeiou]", "[^aeiou][^aeiouy]*"); +const c = "ba"; +const b = c + "a"; +const d = b + "a"; +console.log("a", b, c, d); `.trim(), ); |