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": 8 18 }, 19 "end": { 20 "line": 17, 21 "column": 14 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": 15 59 } 60 } 61 }, 62 { 63 "type": "VariableDeclaration", 64 "declarations": [ 65 { 66 "type": "VariableDeclarator", 67 "id": { 68 "type": "Identifier", 69 "name": "b", 70 "decorators": [], 71 "loc": { 72 "start": { 73 "line": 18, 74 "column": 5 75 }, 76 "end": { 77 "line": 18, 78 "column": 6 79 } 80 } 81 }, 82 "init": { 83 "type": "NumberLiteral", 84 "value": 5, 85 "loc": { 86 "start": { 87 "line": 18, 88 "column": 9 89 }, 90 "end": { 91 "line": 18, 92 "column": 10 93 } 94 } 95 }, 96 "loc": { 97 "start": { 98 "line": 18, 99 "column": 5 100 }, 101 "end": { 102 "line": 18, 103 "column": 10 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": 11 117 } 118 } 119 }, 120 { 121 "type": "ExpressionStatement", 122 "expression": { 123 "type": "AssignmentExpression", 124 "operator": "=", 125 "left": { 126 "type": "ArrayPattern", 127 "elements": [ 128 { 129 "type": "ArrayPattern", 130 "elements": [ 131 { 132 "type": "Identifier", 133 "name": "a", 134 "decorators": [], 135 "loc": { 136 "start": { 137 "line": 19, 138 "column": 3 139 }, 140 "end": { 141 "line": 19, 142 "column": 4 143 } 144 } 145 } 146 ], 147 "loc": { 148 "start": { 149 "line": 19, 150 "column": 2 151 }, 152 "end": { 153 "line": 19, 154 "column": 5 155 } 156 } 157 } 158 ], 159 "loc": { 160 "start": { 161 "line": 19, 162 "column": 1 163 }, 164 "end": { 165 "line": 19, 166 "column": 6 167 } 168 } 169 }, 170 "right": { 171 "type": "ArrayExpression", 172 "elements": [ 173 { 174 "type": "Identifier", 175 "name": "b", 176 "decorators": [], 177 "loc": { 178 "start": { 179 "line": 19, 180 "column": 10 181 }, 182 "end": { 183 "line": 19, 184 "column": 11 185 } 186 } 187 } 188 ], 189 "loc": { 190 "start": { 191 "line": 19, 192 "column": 9 193 }, 194 "end": { 195 "line": 19, 196 "column": 12 197 } 198 } 199 }, 200 "loc": { 201 "start": { 202 "line": 19, 203 "column": 1 204 }, 205 "end": { 206 "line": 19, 207 "column": 12 208 } 209 } 210 }, 211 "loc": { 212 "start": { 213 "line": 19, 214 "column": 1 215 }, 216 "end": { 217 "line": 19, 218 "column": 13 219 } 220 } 221 } 222 ], 223 "loc": { 224 "start": { 225 "line": 1, 226 "column": 1 227 }, 228 "end": { 229 "line": 19, 230 "column": 13 231 } 232 } 233} 234TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. [arrayDestructuring41.ts:19:2] 235