Merge pull request #2097 from rtfeldman/wasm-empty-record

Wasm empty record
This commit is contained in:
Folkert de Vries 2021-11-29 13:15:40 +01:00 committed by GitHub
commit 167af34d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 352 additions and 190 deletions

View file

@ -141,6 +141,16 @@ where
}
}
impl Wasm32TestResult for () {
fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) {
// Main's symbol index is the same as its function index, since the first symbols we created were for procs
let main_symbol_index = main_function_index;
code_builder.call(main_function_index, main_symbol_index, 0, false);
code_builder.get_global(0);
code_builder.build_fn_header(&[], 0, None);
}
}
impl<T, U> Wasm32TestResult for (T, U)
where
T: Wasm32TestResult + FromWasm32Memory,