Update dependencies (#30)

* dev-test: update dependencies

* update wasmparser: 0.99.0 -> 0.101.1

Remove `i64` generation fix for elements as they only contain `reftype` and not `i64`

* update wasmparser: 0.101.1 -> 0.103.0

See <https://github.com/bytecodealliance/wasm-tools/pull/957> for more information

* update wasmparser: 0.103.0 -> 0.106.0

* update wasmparser: 0.106.0 -> 0.107.0
This commit is contained in:
wackbyte
2023-06-26 17:19:12 -04:00
committed by GitHub
parent ef18bb1172
commit bbaa60e8c2
7 changed files with 22 additions and 19 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ version = "0.12.0"
edition = "2021"
[dependencies]
wasmparser = "0.99.0"
wasmparser = "0.107.0"
[dependencies.wasm-ast]
path = "../../wasm-ast"
+4 -2
View File
@@ -107,8 +107,8 @@ fn write_table_list(wasm: &Module, w: &mut dyn Write) -> Result<()> {
for (i, table) in table.iter().enumerate() {
let index = offset + i;
let min = table.initial;
let max = table.maximum.unwrap_or(0xFFFF);
let min = table.ty.initial;
let max = table.ty.maximum.unwrap_or(0xFFFF);
writeln!(
w,
@@ -155,6 +155,8 @@ fn write_element_list(list: &[Element], type_info: &TypeInfo, w: &mut dyn Write)
unimplemented!("passive elements not supported")
};
let index = index.unwrap_or(0);
writeln!(w, "\tdo")?;
writeln!(w, "\t\tlocal target = TABLE_LIST[{index}].data")?;
write!(w, "\t\tlocal offset = ")?;