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": 16, 17 "column": 8 18 }, 19 "end": { 20 "line": 16, 21 "column": 14 22 } 23 } 24 }, 25 "decorators": [], 26 "loc": { 27 "start": { 28 "line": 16, 29 "column": 5 30 }, 31 "end": { 32 "line": 16, 33 "column": 6 34 } 35 } 36 }, 37 "init": null, 38 "loc": { 39 "start": { 40 "line": 16, 41 "column": 5 42 }, 43 "end": { 44 "line": 16, 45 "column": 6 46 } 47 } 48 } 49 ], 50 "kind": "var", 51 "loc": { 52 "start": { 53 "line": 16, 54 "column": 1 55 }, 56 "end": { 57 "line": 16, 58 "column": 15 59 } 60 } 61 }, 62 { 63 "type": "ExpressionStatement", 64 "expression": { 65 "type": "AssignmentExpression", 66 "operator": "=", 67 "left": { 68 "type": "ObjectPattern", 69 "properties": [ 70 { 71 "type": "Property", 72 "method": false, 73 "shorthand": true, 74 "computed": false, 75 "key": { 76 "type": "Identifier", 77 "name": "a", 78 "decorators": [], 79 "loc": { 80 "start": { 81 "line": 17, 82 "column": 4 83 }, 84 "end": { 85 "line": 17, 86 "column": 5 87 } 88 } 89 }, 90 "value": { 91 "type": "Identifier", 92 "name": "a", 93 "decorators": [], 94 "loc": { 95 "start": { 96 "line": 17, 97 "column": 4 98 }, 99 "end": { 100 "line": 17, 101 "column": 5 102 } 103 } 104 }, 105 "kind": "init", 106 "loc": { 107 "start": { 108 "line": 17, 109 "column": 4 110 }, 111 "end": { 112 "line": 17, 113 "column": 5 114 } 115 } 116 } 117 ], 118 "loc": { 119 "start": { 120 "line": 17, 121 "column": 2 122 }, 123 "end": { 124 "line": 17, 125 "column": 7 126 } 127 } 128 }, 129 "right": { 130 "type": "ObjectExpression", 131 "properties": [ 132 { 133 "type": "Property", 134 "method": false, 135 "shorthand": false, 136 "computed": false, 137 "key": { 138 "type": "Identifier", 139 "name": "a", 140 "decorators": [], 141 "loc": { 142 "start": { 143 "line": 17, 144 "column": 12 145 }, 146 "end": { 147 "line": 17, 148 "column": 13 149 } 150 } 151 }, 152 "value": { 153 "type": "NumberLiteral", 154 "value": 3, 155 "loc": { 156 "start": { 157 "line": 17, 158 "column": 15 159 }, 160 "end": { 161 "line": 17, 162 "column": 16 163 } 164 } 165 }, 166 "kind": "init", 167 "loc": { 168 "start": { 169 "line": 17, 170 "column": 12 171 }, 172 "end": { 173 "line": 17, 174 "column": 16 175 } 176 } 177 }, 178 { 179 "type": "Property", 180 "method": false, 181 "shorthand": false, 182 "computed": false, 183 "key": { 184 "type": "Identifier", 185 "name": "b", 186 "decorators": [], 187 "loc": { 188 "start": { 189 "line": 17, 190 "column": 18 191 }, 192 "end": { 193 "line": 17, 194 "column": 19 195 } 196 } 197 }, 198 "value": { 199 "type": "NumberLiteral", 200 "value": 4, 201 "loc": { 202 "start": { 203 "line": 17, 204 "column": 21 205 }, 206 "end": { 207 "line": 17, 208 "column": 22 209 } 210 } 211 }, 212 "kind": "init", 213 "loc": { 214 "start": { 215 "line": 17, 216 "column": 18 217 }, 218 "end": { 219 "line": 17, 220 "column": 22 221 } 222 } 223 } 224 ], 225 "loc": { 226 "start": { 227 "line": 17, 228 "column": 10 229 }, 230 "end": { 231 "line": 17, 232 "column": 24 233 } 234 } 235 }, 236 "loc": { 237 "start": { 238 "line": 17, 239 "column": 1 240 }, 241 "end": { 242 "line": 17, 243 "column": 25 244 } 245 } 246 }, 247 "loc": { 248 "start": { 249 "line": 17, 250 "column": 1 251 }, 252 "end": { 253 "line": 17, 254 "column": 25 255 } 256 } 257 } 258 ], 259 "loc": { 260 "start": { 261 "line": 1, 262 "column": 1 263 }, 264 "end": { 265 "line": 19, 266 "column": 1 267 } 268 } 269} 270TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. [objectDestructuring33.ts:17:2] 271