File tree Expand file tree Collapse file tree
src/transformation/visitors Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export const transformTryStatement: FunctionVisitor<ts.TryStatement> = (statemen
191191
192192 // pcall(____catch, ____hasReturnOrError)
193193 const catchPCall = lua . createIdentifier ( "pcall" , tsCatchClause ) ;
194- const catchPcall = lua . createCallExpression (
194+ const catchCall = lua . createCallExpression (
195195 catchPCall ,
196196 [ catchIdentifier , lua . cloneIdentifier ( hasReturnOrErrorIdentifier , tsCatchClause ) ] ,
197197 tsTryBlock
@@ -205,7 +205,7 @@ export const transformTryStatement: FunctionVisitor<ts.TryStatement> = (statemen
205205 lua . cloneIdentifier ( hasReturnOrErrorIdentifier , tsCatchClause ) ,
206206 lua . cloneIdentifier ( returnValueIdentifier , tsCatchClause ) ,
207207 ] ,
208- catchPcall ,
208+ catchCall ,
209209 tsCatchClause
210210 ) ;
211211
You can’t perform that action at this time.
0 commit comments