fix also functions_section -> function_section

This commit is contained in:
NikVolf
2017-06-03 23:37:36 +03:00
parent 8eb78497d3
commit a080b42db0
4 changed files with 5 additions and 5 deletions

View File

@ -318,7 +318,7 @@ impl ModuleInstanceInterface for ModuleInstance {
// internal index = index of function in functions section && index of code in code section
// get function type index
let function_type_index = self.module
.functions_section()
.function_section()
.ok_or(Error::Function(format!("trying to call function with index {} in module without function section", index)))
.and_then(|s| s.entries()
.get(index as usize)