Skip to content

Commit

Permalink
svm: don't check for internal functions if an external one was alread…
Browse files Browse the repository at this point in the history
…y found
  • Loading branch information
Rexicon226 committed Jan 29, 2025
1 parent 612fa11 commit 69be8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svm/vm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ pub const Vm = struct {
try builtin_fn(self);
}
}
if (internal) {
if (internal and !resolved) {
if (self.executable.function_registry.lookupKey(inst.imm)) |entry| {
resolved = true;
try self.pushCallFrame();
Expand Down

0 comments on commit 69be8bc

Please sign in to comment.