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

@ -13,4 +13,4 @@ edition = "2018"
[dependencies]
failure = "0.1"
walrus = "0.11.0"
walrus = "0.12.0"

View File

@ -388,8 +388,7 @@ fn inject_start(
// nonzero (assuming we don't overflow...)
body.local_get(local);
body.if_else(
Box::new([]),
Box::new([]),
None,
// If our thread id is nonzero then we're the second or greater thread, so
// we give ourselves a stack via memory.grow and we update our stack
// pointer as the default stack pointer is surely wrong for us.
@ -401,7 +400,7 @@ fn inject_start(
.local_set(local);
// if local0 == -1 then trap
body.block(Box::new([]), Box::new([]), |body| {
body.block(None, |body| {
let target = body.id();
body.local_get(local)
.i32_const(-1)