shared object module paths should be split on /

This commit is contained in:
K. Lange 2023-07-20 11:47:06 +09:00
parent a8e870cc87
commit c24a1ca633

View File

@ -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_")));