mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-13 00:51:20 +00:00
Fix runtime error catching (#157)
This commit is contained in:
@ -83,12 +83,23 @@ impl PartialEq for LinkError {
|
||||
/// Comparing two `RuntimeError`s always evaluates to false.
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum RuntimeError {
|
||||
OutOfBoundsAccess { memory: MemoryIndex, addr: u32 },
|
||||
TableOutOfBounds { table: TableIndex },
|
||||
IndirectCallSignature { table: TableIndex },
|
||||
IndirectCallToNull { table: TableIndex },
|
||||
OutOfBoundsAccess {
|
||||
memory: MemoryIndex,
|
||||
addr: Option<u32>,
|
||||
},
|
||||
TableOutOfBounds {
|
||||
table: TableIndex,
|
||||
},
|
||||
IndirectCallSignature {
|
||||
table: TableIndex,
|
||||
},
|
||||
IndirectCallToNull {
|
||||
table: TableIndex,
|
||||
},
|
||||
IllegalArithmeticOperation,
|
||||
Unknown { msg: String },
|
||||
Unknown {
|
||||
msg: String,
|
||||
},
|
||||
}
|
||||
|
||||
impl PartialEq for RuntimeError {
|
||||
|
Reference in New Issue
Block a user