Update to walrus 0.12.0

This commit is contained in:
Nick Fitzgerald
2019-09-10 11:34:45 -07:00
parent 7cca2751c1
commit 582b733967
8 changed files with 10 additions and 11 deletions

View File

@ -18,9 +18,9 @@ log = "0.4"
rustc-demangle = "0.1.13"
serde_json = "1.0"
tempfile = "3.0"
walrus = "0.11.0"
walrus = "0.12.0"
wasm-bindgen-anyref-xform = { path = '../anyref-xform', version = '=0.2.50' }
wasm-bindgen-shared = { path = "../shared", version = '=0.2.50' }
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.50' }
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.50' }
wasm-webidl-bindings = "0.4.0"
wasm-webidl-bindings = "0.5.0"

View File

@ -539,7 +539,7 @@ impl Output {
.join(wasm_name)
.with_extension("wasm");
fs::create_dir_all(out_dir)?;
let wasm_bytes = self.module.emit_wasm()?;
let wasm_bytes = self.module.emit_wasm();
fs::write(&wasm_path, wasm_bytes)
.with_context(|_| format!("failed to write `{}`", wasm_path.display()))?;

View File

@ -165,7 +165,7 @@ impl Output {
imports = imports,
set_exports = set_exports,
);
let wasm = self.module.emit_wasm().expect("failed to serialize");
let wasm = self.module.emit_wasm();
let (bytes, booted) = if self.base64 {
(
format!(