diff --git a/crates/cli-support/Cargo.toml b/crates/cli-support/Cargo.toml index 98a626d3..4d09a434 100644 --- a/crates/cli-support/Cargo.toml +++ b/crates/cli-support/Cargo.toml @@ -13,7 +13,7 @@ Shared support for the wasm-bindgen-cli package, an internal dependency [dependencies] base64 = "0.9" failure = "0.1" -parity-wasm = "0.30" +parity-wasm = "0.31" serde = "1.0" serde_derive = "1.0" serde_json = "1.0" diff --git a/crates/cli-support/src/wasm2es6js.rs b/crates/cli-support/src/wasm2es6js.rs index 727b0d83..d58b502c 100644 --- a/crates/cli-support/src/wasm2es6js.rs +++ b/crates/cli-support/src/wasm2es6js.rs @@ -320,11 +320,11 @@ impl Output { if offset.len() != 2 { bail!("don't recognize data offset {:?}", offset) } - if offset[1] != Opcode::End { + if offset[1] != Instruction::End { bail!("don't recognize data offset {:?}", offset) } let offset = match offset[0] { - Opcode::I32Const(x) => x, + Instruction::I32Const(x) => x, _ => bail!("don't recognize data offset {:?}", offset), };