mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user