Skip to content

Commit 13a01e1

Browse files
committed
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`.
1 parent ca95a6e commit 13a01e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/extractor/lib/typescript/src/type_table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ export class TypeTable {
12411241
stack.push(id);
12421242

12431243
for (let symbol of type.getProperties()) {
1244-
let propertyType = this.tryGetTypeOfSymbol(symbol);
1244+
let propertyType = typeTable.tryGetTypeOfSymbol(symbol);
12451245
if (propertyType == null) continue;
12461246
traverseType(propertyType);
12471247
}

0 commit comments

Comments
 (0)