Skip to content

Commit 791cd5d

Browse files
committed
Switch exception tag attribute to u8 from u32
To match this spec change: WebAssembly/exception-handling#162
1 parent 9f6c3aa commit 791cd5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasmparser/src/binary_reader.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ impl<'a> BinaryReader<'a> {
380380
}
381381

382382
pub(crate) fn read_tag_type(&mut self) -> Result<TagType> {
383-
let attribute = self.read_var_u32()?;
383+
let attribute = self.read_u8()?;
384384
if attribute != 0 {
385385
return Err(BinaryReaderError::new(
386386
"invalid tag attributes",

0 commit comments

Comments
 (0)