Update wasm-tools crates (#3997)
* Update wasm-tools crates This commit updates the wasm-tools family of crates as used in Wasmtime. Notably this brings in the update which removes module linking support as well as a number of internal refactorings around names and such within wasmparser itself. This updates all of the wasm translation support which binds to wasmparser as appropriate. Other crates all had API-compatible changes for at least what Wasmtime used so no further changes were necessary beyond updating version requirements. * Update a test expectation
This commit is contained in:
@@ -95,9 +95,9 @@ impl TableOps {
|
||||
|
||||
// Import the GC function.
|
||||
let mut imports = ImportSection::new();
|
||||
imports.import("", Some("gc"), EntityType::Function(0));
|
||||
imports.import("", Some("take_refs"), EntityType::Function(2));
|
||||
imports.import("", Some("make_refs"), EntityType::Function(3));
|
||||
imports.import("", "gc", EntityType::Function(0));
|
||||
imports.import("", "take_refs", EntityType::Function(2));
|
||||
imports.import("", "make_refs", EntityType::Function(3));
|
||||
|
||||
// Define our table.
|
||||
let mut tables = TableSection::new();
|
||||
@@ -422,10 +422,12 @@ mod tests {
|
||||
global.get 0
|
||||
call 1
|
||||
br 0 (;@1;)
|
||||
end)
|
||||
end
|
||||
)
|
||||
(table (;0;) 20 externref)
|
||||
(global (;0;) (mut externref) ref.null extern)
|
||||
(export "run" (func 3)))
|
||||
(export "run" (func 3))
|
||||
)
|
||||
"#;
|
||||
eprintln!("expected WAT = {}", expected);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user