refactor: make context inherit module handle container

Refs: #39
This commit is contained in:
2026-07-03 19:28:59 +02:00
parent e087c11008
commit a7ab214ce3
4 changed files with 5 additions and 48 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ namespace furvm {
void executor::push_frame(const mod_h& mod, function function) {
mod_h modInst = mod;
while (function.type() == function_t::Import) {
modInst = m_context->module_at(function.imp().mod);
modInst = m_context->at(function.imp().mod);
function = *modInst->function_at(function.imp().function);
}