mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +00:00
Return DefaultCustomSectionsIterator for custom_sections
This commit is contained in:
@@ -560,7 +560,16 @@ impl Module {
|
||||
/// is returned.
|
||||
pub fn custom_sections<'a>(&'a self, name: &'a str) -> impl Iterator<Item = Box<[u8]>> + 'a {
|
||||
// TODO: implement on JavaScript
|
||||
unimplemented!()
|
||||
DefaultCustomSectionsIterator { }
|
||||
}
|
||||
}
|
||||
|
||||
pub struct DefaultCustomSectionsIterator { }
|
||||
|
||||
impl Iterator for DefaultCustomSectionsIterator {
|
||||
type Item = Box<[u8]>;
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user