Skip to content

Commit 5a19a37

Browse files
committed
track Scope in transformClassExpression
1 parent 5735093 commit 5a19a37

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
@@ -3679,7 +3679,10 @@ export class LuaTransformer {
36793679
className = tstl.createAnonymousIdentifier();
36803680
}
36813681

3682+
this.pushScope(ScopeType.Function);
36823683
const classDeclaration = this.transformClassDeclaration(expression, className);
3684+
this.popScope();
3685+
36833686
return this.createImmediatelyInvokedFunctionExpression(
36843687
this.statementVisitResultToArray(classDeclaration),
36853688
className,

0 commit comments

Comments
 (0)