Skip to content

Commit 2acc654

Browse files
committed
Update wasmparser dependency
1 parent a126238 commit 2acc654

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ features = ['doc']
2727
crc32fast = { version = "1.2", default-features = false, optional = true }
2828
flate2 = { version = "1", optional = true }
2929
indexmap = { version = "2.0", default-features = false, optional = true }
30-
wasmparser = { version = "0.241.2", default-features = false, optional = true }
30+
wasmparser = { version = "0.243.0", default-features = false, optional = true }
3131
memchr = { version = "2.4.1", default-features = false }
3232
hashbrown = { version = "0.16.0", features = ["default-hasher"], default-features = false, optional = true }
3333
ruzstd = { version = "0.8.1", optional = true }

src/read/wasm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl<'data, R: ReadRef<'data>> WasmFile<'data, R> {
234234
for import in imports {
235235
let import = import.read_error("Couldn't read an import item")?;
236236
let kind = match import.ty {
237-
wp::TypeRef::Func(_) => {
237+
wp::TypeRef::Func(_) | wp::TypeRef::FuncExact(_) => {
238238
import_func_names.push(import.name);
239239
SymbolKind::Text
240240
}
@@ -399,7 +399,7 @@ impl<'data, R: ReadRef<'data>> WasmFile<'data, R> {
399399
let export = export.read_error("Couldn't read an export item")?;
400400

401401
let (kind, section_idx) = match export.kind {
402-
wp::ExternalKind::Func => {
402+
wp::ExternalKind::Func | wp::ExternalKind::FuncExact => {
403403
if let Some(local_func_id) =
404404
export.index.checked_sub(import_func_names.len() as u32)
405405
{

0 commit comments

Comments
 (0)