shared object module paths should be split on /
This commit is contained in:
parent
a8e870cc87
commit
c24a1ca633
2
src/vm.c
2
src/vm.c
@ -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_")));
|
||||
|
Loading…
Reference in New Issue
Block a user