Wasm: store function_count on the ImportSection

This commit is contained in:
Brian Carroll 2022-01-12 08:45:24 +00:00
parent 7a4593170c
commit ca2597973e
3 changed files with 25 additions and 8 deletions

View file

@ -14,7 +14,7 @@ pub trait Wasm32TestResult {
wrapper_name: &str,
main_function_index: u32,
) {
let index = module.import.function_count()
let index = module.import.function_count
+ module.code.preloaded_count
+ module.code.code_builders.len() as u32;