Update deps and tests for anyref --> externref
* Update to using `wasmparser` 0.55.0 * Update wasmprinter to 0.2.5 * Update `wat` to 1.0.18, and `wast` to 17.0.0
This commit is contained in:
@@ -83,7 +83,9 @@ fn read_module(path: &Path) -> Vec<u8> {
|
||||
}
|
||||
Some(ext) => match ext.to_str() {
|
||||
Some("wasm") => read_file(path).expect("error reading wasm file"),
|
||||
Some("wat") => wat::parse_file(path).expect("failed to parse wat"),
|
||||
Some("wat") => wat::parse_file(path)
|
||||
.map_err(|e| e.to_string())
|
||||
.expect("failed to parse wat"),
|
||||
None | Some(&_) => panic!("the file extension for {:?} is not wasm or wat", path),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user