fix a this reference

`this` didn't refer to anything specific, and it was in fact `undefined` in the context it was invoked. There was already a  `let typeTable = this;` further up (where `this` refers to the class instance), so I used `typeTable`.
This commit is contained in:
erik-krogh
2023-12-12 10:32:31 +01:00
parent 43b228dbb4
commit 10cf53b8d3

View File

@@ -1241,7 +1241,7 @@ export class TypeTable {
stack.push(id);
for (let symbol of type.getProperties()) {
let propertyType = this.tryGetTypeOfSymbol(symbol);
let propertyType = typeTable.tryGetTypeOfSymbol(symbol);
if (propertyType == null) continue;
traverseType(propertyType);
}