handle traps naively

This commit is contained in:
Lachlan Sneff
2019-01-18 16:45:30 -08:00
parent c18328aa4c
commit ebeea0c71c
8 changed files with 199 additions and 67 deletions

View File

@ -80,8 +80,10 @@ impl PartialEq for LinkError {
#[derive(Debug, Clone)]
pub enum RuntimeError {
OutOfBoundsAccess { memory: MemoryIndex, addr: u32 },
TableOutOfBounds { table: TableIndex },
IndirectCallSignature { table: TableIndex },
IndirectCallToNull { table: TableIndex },
IllegalArithmeticOperation,
Unknown { msg: String },
}