Skip to content

Commit a292f71

Browse files
committed
Fixed functions beeing declared as global
1 parent 5971e3a commit a292f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LuaTransformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ export class LuaTransformer {
944944
);
945945
const functionExpression = tstl.createFunctionExpression(body, params, dotsLiteral, restParamName);
946946

947-
return this.createLocalOrExportedOrGlobalDeclaration(name, functionExpression, undefined, functionDeclaration);
947+
return this.createLocalOrExportedDeclaration(name, functionExpression, undefined, functionDeclaration);
948948
}
949949

950950
public transformTypeAliasDeclaration(statement: ts.TypeAliasDeclaration): undefined {

0 commit comments

Comments
 (0)