From 34845028398b47973f123deb0f6f1863634b1445 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 16 Jan 2023 15:21:11 -0800 Subject: [JS Parser] Don't inline rope strings --- test/bun.js/transpiler.test.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'test/bun.js/transpiler.test.js') 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(), ); -- cgit v1.2.3