Skip to content

Commit

Permalink
Fix opcodes for continuation heap types. (bytecodealliance#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhil authored Jul 29, 2024
2 parents 9b30f22 + 5602656 commit d81b76e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/wasmparser/src/readers/core/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1685,8 +1685,10 @@ impl<'a> FromReader<'a> for RefType {
0x6B => Ok(RefType::STRUCT.nullable()),
0x6A => Ok(RefType::ARRAY.nullable()),
0x6C => Ok(RefType::I31.nullable()),
0x68 => Ok(RefType::NOCONT.nullable()),
0x69 => Ok(RefType::EXN.nullable()),
0x74 => Ok(RefType::NOEXN.nullable()),
0x75 => Ok(RefType::CONT.nullable()),
_ => bail!(pos, "invalid abstract heap type"),
};

Expand Down

0 comments on commit d81b76e

Please sign in to comment.