• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "ExpressionStatement",
6      "expression": {
7        "type": "AssignmentExpression",
8        "operator": "=",
9        "left": {
10          "type": "ArrayPattern",
11          "elements": [
12            {
13              "type": "Identifier",
14              "name": "a",
15              "decorators": [],
16              "loc": {
17                "start": {
18                  "line": 17,
19                  "column": 2
20                },
21                "end": {
22                  "line": 17,
23                  "column": 3
24                }
25              }
26            }
27          ],
28          "loc": {
29            "start": {
30              "line": 17,
31              "column": 1
32            },
33            "end": {
34              "line": 17,
35              "column": 4
36            }
37          }
38        },
39        "right": {
40          "type": "ArrayExpression",
41          "elements": [],
42          "loc": {
43            "start": {
44              "line": 17,
45              "column": 7
46            },
47            "end": {
48              "line": 17,
49              "column": 9
50            }
51          }
52        },
53        "loc": {
54          "start": {
55            "line": 17,
56            "column": 1
57          },
58          "end": {
59            "line": 17,
60            "column": 9
61          }
62        }
63      },
64      "loc": {
65        "start": {
66          "line": 17,
67          "column": 1
68        },
69        "end": {
70          "line": 17,
71          "column": 10
72        }
73      }
74    }
75  ],
76  "loc": {
77    "start": {
78      "line": 1,
79      "column": 1
80    },
81    "end": {
82      "line": 17,
83      "column": 10
84    }
85  }
86}
87TypeError: Tuple type [] of length 0 has no element at index 0. [arrayDestructuring32.ts:17:1]
88