aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/transpiler.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-16 15:21:11 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-16 15:21:11 -0800
commit34845028398b47973f123deb0f6f1863634b1445 (patch)
tree233c56a12705aef308c43f060b4e4efd722337b0 /test/bun.js/transpiler.test.js
parenta345efd270bcd19672b13b363d287354113b7aba (diff)
downloadbun-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.js13
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(),
);