Skip to content

Commit 58bba85

Browse files
committed
track Scope in transformClassExpression
1 parent 0d6c148 commit 58bba85

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/LuaTransformer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3674,7 +3674,10 @@ export class LuaTransformer {
36743674
className = tstl.createAnonymousIdentifier();
36753675
}
36763676

3677+
this.pushScope(ScopeType.Function);
36773678
const classDeclaration = this.transformClassDeclaration(expression, className);
3679+
this.popScope();
3680+
36783681
return this.createImmediatelyInvokedFunctionExpression(
36793682
this.statementVisitResultToArray(classDeclaration),
36803683
className,

0 commit comments

Comments
 (0)