Implement assert_malformed and assert_invalid.

This commit is contained in:
Dan Gohman
2018-12-12 12:28:51 -08:00
parent 3f24098edc
commit bc4333d857
4 changed files with 49 additions and 16 deletions

View File

@@ -119,6 +119,10 @@ pub enum ActionError {
#[fail(display = "Type error: {}", _0)]
Type(String),
/// The module did not pass validation.
#[fail(display = "Validation error: {}", _0)]
Validate(String),
/// A wasm translation error occured.
#[fail(display = "WebAssembly compilation error: {}", _0)]
Compile(CompileError),