mirror of
https://github.com/encounter/object.git
synced 2026-07-10 12:18:39 -07:00
Update wasmparser dependency
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ features = ['doc']
|
||||
crc32fast = { version = "1.2", default-features = false, optional = true }
|
||||
flate2 = { version = "1", optional = true }
|
||||
indexmap = { version = "2.0", default-features = false, optional = true }
|
||||
wasmparser = { version = "0.241.2", default-features = false, optional = true }
|
||||
wasmparser = { version = "0.243.0", default-features = false, optional = true }
|
||||
memchr = { version = "2.4.1", default-features = false }
|
||||
hashbrown = { version = "0.16.0", features = ["default-hasher"], default-features = false, optional = true }
|
||||
ruzstd = { version = "0.8.1", optional = true }
|
||||
|
||||
+2
-2
@@ -234,7 +234,7 @@ impl<'data, R: ReadRef<'data>> WasmFile<'data, R> {
|
||||
for import in imports {
|
||||
let import = import.read_error("Couldn't read an import item")?;
|
||||
let kind = match import.ty {
|
||||
wp::TypeRef::Func(_) => {
|
||||
wp::TypeRef::Func(_) | wp::TypeRef::FuncExact(_) => {
|
||||
import_func_names.push(import.name);
|
||||
SymbolKind::Text
|
||||
}
|
||||
@@ -399,7 +399,7 @@ impl<'data, R: ReadRef<'data>> WasmFile<'data, R> {
|
||||
let export = export.read_error("Couldn't read an export item")?;
|
||||
|
||||
let (kind, section_idx) = match export.kind {
|
||||
wp::ExternalKind::Func => {
|
||||
wp::ExternalKind::Func | wp::ExternalKind::FuncExact => {
|
||||
if let Some(local_func_id) =
|
||||
export.index.checked_sub(import_func_names.len() as u32)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user