This commit is contained in:
Sergey Pepyakin
2017-12-01 19:42:34 +03:00
parent 907b914fba
commit 0feed2fa21
5 changed files with 161 additions and 147 deletions

View File

@ -366,8 +366,6 @@ impl ModuleInstance {
return Err(Error::Validation(format!("length of function section is {}, while len of code section is {}", function_section_len, code_section_len)));
}
// use data section to initialize linear memory regions
if let Some(data_section) = self.module.data_section() {
for (data_segment_index, data_segment) in data_section.entries().iter().enumerate() {