Remove deprecated Export type. Updated structure to use VMExtern

This commit is contained in:
Syrus Akbary
2023-01-26 13:25:08 +01:00
parent d59f4c2ffd
commit 6707e67d9e
15 changed files with 69 additions and 342 deletions

View File

@@ -645,7 +645,7 @@ impl Module {
pub fn custom_sections<'a>(&'a self, name: &'a str) -> impl Iterator<Item = Box<[u8]>> + 'a {
WebAssembly::Module::custom_sections(&self.module, name)
.iter()
.map(move |(buf_val)| {
.map(move |buf_val| {
let typebuf: js_sys::Uint8Array = js_sys::Uint8Array::new(&buf_val);
typebuf.to_vec().into_boxed_slice()
})