Debian Codegraph @

packages/babel-plugin-transform-modules-commonjs/test/fixtures/interop/export-destructured/input.mjs

raw
1 export let x = 0;
2 export let y = 0;
3
4 export function f1 () {
5 ({x} = { x: 1 });
6 }
7
8 export function f2 () {
9 ({x, y} = { x: 2, y: 3 });
10 }
11
12 export function f3 () {
13 [x, y, z] = [3, 4, 5]
14 }
15
16 export function f4 () {
17 [x, , y] = [3, 4, 5]
18 }