mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Wasm: store function_count on the ImportSection
This commit is contained in:
parent
7a4593170c
commit
ca2597973e
3 changed files with 25 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue