Get control flow working (fingers crossed)

This commit is contained in:
Lachlan Sneff
2019-02-12 18:02:00 -08:00
parent 5ee19e55a5
commit 2572a0259b
5 changed files with 377 additions and 52 deletions

View File

@ -285,7 +285,12 @@ pub fn type_to_type(ty: WpType) -> Result<Type, BinaryReaderError> {
offset: -1isize as usize,
});
}
_ => panic!("broken invariant, invalid type"),
_ => {
return Err(BinaryReaderError {
message: "that type is not supported as a wasmer type",
offset: -1isize as usize,
});
}
})
}