1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "a", 12 "typeAnnotation": { 13 "type": "TSNumberKeyword", 14 "loc": { 15 "start": { 16 "line": 17, 17 "column": 7 18 }, 19 "end": { 20 "line": 17, 21 "column": 13 22 } 23 } 24 }, 25 "decorators": [], 26 "loc": { 27 "start": { 28 "line": 17, 29 "column": 5 30 }, 31 "end": { 32 "line": 17, 33 "column": 6 34 } 35 } 36 }, 37 "init": null, 38 "loc": { 39 "start": { 40 "line": 17, 41 "column": 5 42 }, 43 "end": { 44 "line": 17, 45 "column": 6 46 } 47 } 48 } 49 ], 50 "kind": "var", 51 "loc": { 52 "start": { 53 "line": 17, 54 "column": 1 55 }, 56 "end": { 57 "line": 17, 58 "column": 14 59 } 60 } 61 }, 62 { 63 "type": "VariableDeclaration", 64 "declarations": [ 65 { 66 "type": "VariableDeclarator", 67 "id": { 68 "type": "Identifier", 69 "name": "b", 70 "typeAnnotation": { 71 "type": "TSNumberKeyword", 72 "loc": { 73 "start": { 74 "line": 18, 75 "column": 8 76 }, 77 "end": { 78 "line": 18, 79 "column": 14 80 } 81 } 82 }, 83 "decorators": [], 84 "loc": { 85 "start": { 86 "line": 18, 87 "column": 5 88 }, 89 "end": { 90 "line": 18, 91 "column": 6 92 } 93 } 94 }, 95 "init": null, 96 "loc": { 97 "start": { 98 "line": 18, 99 "column": 5 100 }, 101 "end": { 102 "line": 18, 103 "column": 6 104 } 105 } 106 } 107 ], 108 "kind": "var", 109 "loc": { 110 "start": { 111 "line": 18, 112 "column": 1 113 }, 114 "end": { 115 "line": 18, 116 "column": 15 117 } 118 } 119 }, 120 { 121 "type": "ExpressionStatement", 122 "expression": { 123 "type": "AssignmentExpression", 124 "operator": "=", 125 "left": { 126 "type": "ArrayPattern", 127 "elements": [ 128 { 129 "type": "AssignmentPattern", 130 "left": { 131 "type": "Identifier", 132 "name": "a", 133 "decorators": [], 134 "loc": { 135 "start": { 136 "line": 19, 137 "column": 2 138 }, 139 "end": { 140 "line": 19, 141 "column": 3 142 } 143 } 144 }, 145 "right": { 146 "type": "NumberLiteral", 147 "value": 5, 148 "loc": { 149 "start": { 150 "line": 19, 151 "column": 6 152 }, 153 "end": { 154 "line": 19, 155 "column": 7 156 } 157 } 158 }, 159 "loc": { 160 "start": { 161 "line": 19, 162 "column": 2 163 }, 164 "end": { 165 "line": 19, 166 "column": 7 167 } 168 } 169 }, 170 { 171 "type": "Identifier", 172 "name": "b", 173 "decorators": [], 174 "loc": { 175 "start": { 176 "line": 19, 177 "column": 9 178 }, 179 "end": { 180 "line": 19, 181 "column": 10 182 } 183 } 184 } 185 ], 186 "loc": { 187 "start": { 188 "line": 19, 189 "column": 1 190 }, 191 "end": { 192 "line": 19, 193 "column": 11 194 } 195 } 196 }, 197 "right": { 198 "type": "ArrayExpression", 199 "elements": [], 200 "loc": { 201 "start": { 202 "line": 19, 203 "column": 14 204 }, 205 "end": { 206 "line": 19, 207 "column": 16 208 } 209 } 210 }, 211 "loc": { 212 "start": { 213 "line": 19, 214 "column": 1 215 }, 216 "end": { 217 "line": 19, 218 "column": 16 219 } 220 } 221 }, 222 "loc": { 223 "start": { 224 "line": 19, 225 "column": 1 226 }, 227 "end": { 228 "line": 19, 229 "column": 17 230 } 231 } 232 } 233 ], 234 "loc": { 235 "start": { 236 "line": 1, 237 "column": 1 238 }, 239 "end": { 240 "line": 19, 241 "column": 17 242 } 243 } 244} 245TypeError: Tuple type [] of length 0 has no element at index 1. [arrayDestructuring30.ts:19:1] 246