Skip to content

Commit

Permalink
Return DefaultCustomSectionsIterator for custom_sections
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Aug 25, 2022
1 parent e64882a commit 63e2046
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/api/src/js/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 63e2046

Please sign in to comment.