Skip to content

Commit b843c09

Browse files
pilaodaclaude
andcommitted
(transformation): rename catchPcall to catchCall for consistency with tryCall
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9670111 commit b843c09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/transformation/visitors/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)