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": "TSBooleanKeyword", 14 "loc": { 15 "start": { 16 "line": 17, 17 "column": 8 18 }, 19 "end": { 20 "line": 17, 21 "column": 15 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": 16 59 } 60 } 61 }, 62 { 63 "type": "ExpressionStatement", 64 "expression": { 65 "type": "AssignmentExpression", 66 "operator": "=", 67 "left": { 68 "type": "Identifier", 69 "name": "a", 70 "decorators": [], 71 "loc": { 72 "start": { 73 "line": 18, 74 "column": 1 75 }, 76 "end": { 77 "line": 18, 78 "column": 2 79 } 80 } 81 }, 82 "right": { 83 "type": "BooleanLiteral", 84 "value": false, 85 "loc": { 86 "start": { 87 "line": 18, 88 "column": 5 89 }, 90 "end": { 91 "line": 18, 92 "column": 10 93 } 94 } 95 }, 96 "loc": { 97 "start": { 98 "line": 18, 99 "column": 1 100 }, 101 "end": { 102 "line": 18, 103 "column": 10 104 } 105 } 106 }, 107 "loc": { 108 "start": { 109 "line": 18, 110 "column": 1 111 }, 112 "end": { 113 "line": 18, 114 "column": 11 115 } 116 } 117 }, 118 { 119 "type": "VariableDeclaration", 120 "declarations": [ 121 { 122 "type": "VariableDeclarator", 123 "id": { 124 "type": "Identifier", 125 "name": "b", 126 "typeAnnotation": { 127 "type": "TSAnyKeyword", 128 "loc": { 129 "start": { 130 "line": 19, 131 "column": 8 132 }, 133 "end": { 134 "line": 19, 135 "column": 11 136 } 137 } 138 }, 139 "decorators": [], 140 "loc": { 141 "start": { 142 "line": 19, 143 "column": 5 144 }, 145 "end": { 146 "line": 19, 147 "column": 6 148 } 149 } 150 }, 151 "init": null, 152 "loc": { 153 "start": { 154 "line": 19, 155 "column": 5 156 }, 157 "end": { 158 "line": 19, 159 "column": 6 160 } 161 } 162 } 163 ], 164 "kind": "var", 165 "loc": { 166 "start": { 167 "line": 19, 168 "column": 1 169 }, 170 "end": { 171 "line": 19, 172 "column": 12 173 } 174 } 175 }, 176 { 177 "type": "ExpressionStatement", 178 "expression": { 179 "type": "BinaryExpression", 180 "operator": "instanceof", 181 "left": { 182 "type": "Identifier", 183 "name": "a", 184 "decorators": [], 185 "loc": { 186 "start": { 187 "line": 20, 188 "column": 1 189 }, 190 "end": { 191 "line": 20, 192 "column": 2 193 } 194 } 195 }, 196 "right": { 197 "type": "Identifier", 198 "name": "b", 199 "decorators": [], 200 "loc": { 201 "start": { 202 "line": 20, 203 "column": 14 204 }, 205 "end": { 206 "line": 20, 207 "column": 15 208 } 209 } 210 }, 211 "loc": { 212 "start": { 213 "line": 20, 214 "column": 1 215 }, 216 "end": { 217 "line": 20, 218 "column": 15 219 } 220 } 221 }, 222 "loc": { 223 "start": { 224 "line": 20, 225 "column": 1 226 }, 227 "end": { 228 "line": 20, 229 "column": 16 230 } 231 } 232 } 233 ], 234 "loc": { 235 "start": { 236 "line": 1, 237 "column": 1 238 }, 239 "end": { 240 "line": 21, 241 "column": 1 242 } 243 } 244} 245TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. [instanceof_8.ts:20:1] 246