diff options
author | 2022-02-01 14:41:36 -0800 | |
---|---|---|
committer | 2022-02-01 14:41:36 -0800 | |
commit | d47e0de1750c9d234febdebeac4415470deea008 (patch) | |
tree | befbde5c2f428023f263258800d98b9ed8244861 /integration/snippets/multiple-var.js | |
parent | 8c470194ce13781af550a74b2b4f2c1ed06670ac (diff) | |
download | bun-d47e0de1750c9d234febdebeac4415470deea008.tar.gz bun-d47e0de1750c9d234febdebeac4415470deea008.tar.zst bun-d47e0de1750c9d234febdebeac4415470deea008.zip |
[JS Printer] Fix printing edgecase with nested vars that use object destructuring
Diffstat (limited to 'integration/snippets/multiple-var.js')
-rw-r--r-- | integration/snippets/multiple-var.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/integration/snippets/multiple-var.js b/integration/snippets/multiple-var.js new file mode 100644 index 000000000..cd7a84109 --- /dev/null +++ b/integration/snippets/multiple-var.js @@ -0,0 +1,10 @@ +var foo = true; + +if (true) { + var { foo } = { foo: false }; +} + +export function test() { + console.assert(foo === false, "foo should be false"); + return testDone(import.meta.url); +} |