Skip to content

Commit a5563f9

Browse files
authored
fix: Allow inlining the original function into its varargs stub (#1936)
1 parent c441afd commit a5563f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6872,7 +6872,8 @@ export class Compiler extends DiagnosticEmitter {
68726872
table
68736873
);
68746874
stmts.push(
6875-
module.call(original.internalName, forwardedOperands, returnType.toRef())
6875+
// assume this will always succeed (can just use name as the reportNode)
6876+
this.makeCallDirect(original, forwardedOperands, original.declaration.name)
68766877
);
68776878
flow.freeScopedLocals();
68786879
this.currentFlow = previousFlow;

0 commit comments

Comments
 (0)