Skip to content

Commit

Permalink
shared object module paths should be split on /
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Jul 20, 2023
1 parent a8e870c commit c24a1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ int krk_loadModule(KrkString * path, KrkValue * moduleOut, KrkString * runAs, Kr

const char * start = path->chars;
for (const char * c = start; *c; c++) {
if (*c == '.') start = c + 1;
if (*c == '/') start = c + 1;
}

krk_push(OBJECT_VAL(S("krk_module_onload_")));
Expand Down

0 comments on commit c24a1ca

Please sign in to comment.