Add js version of runtime that supports interface types and runs in browser (#137)

This commit is contained in:
Valery Antopol
2022-02-18 18:26:06 +03:00
committed by GitHub
parent 6dfeecd572
commit bbd006ed3c
69 changed files with 11489 additions and 283 deletions

View File

@ -41,7 +41,7 @@ pub fn get_export_funcs_descriptors<'i>(
mit.exports_by_type(*core_function_type)
.map(|export_function_name| (adapter_function_type, export_function_name))
})
.map(|(&adapter_function_type, export_function_names)| {
.flat_map(|(&adapter_function_type, export_function_names)| {
export_function_names
.iter()
.map(move |name| ITExportFuncDescriptor {
@ -49,7 +49,6 @@ pub fn get_export_funcs_descriptors<'i>(
name,
})
})
.flatten()
.collect::<Vec<_>>()
}