Debian Codegraph @

packages/babel-plugin-transform-modules-commonjs/test/fixtures/interop/export-destructured/output.js

raw
1 "use strict";
2
3 Object.defineProperty(exports, "__esModule", {
4 value: true
5 });
6 exports.f1 = f1;
7 exports.f2 = f2;
8 exports.f3 = f3;
9 exports.f4 = f4;
10 exports.y = exports.x = void 0;
11 let x = 0;
12 exports.x = x;
13 let y = 0;
14 exports.y = y;
15 function f1() {
16 ({
17 x
18 } = {
19 x: 1
20 });
21 exports.x = x;
22 }
23 function f2() {
24 ({
25 x,
26 y
27 } = {
28 x: 2,
29 y: 3
30 });
31 exports.x = x, exports.y = y;
32 }
33 function f3() {
34 [x, y, z] = [3, 4, 5];
35 exports.x = x, exports.y = y;
36 }
37 function f4() {
38 [x,, y] = [3, 4, 5];
39 exports.x = x, exports.y = y;
40 }