Merge pull request #2123 from alexcrichton/fix-table-error

Update error message for bad table init
This commit is contained in:
Nick Fitzgerald
2020-08-10 08:58:07 -07:00
committed by GitHub

View File

@@ -1300,7 +1300,7 @@ fn initialize_tables(instance: &Instance) -> Result<(), InstantiationError> {
.map_or(true, |end| end > table.size() as usize)
{
return Err(InstantiationError::Trap(Trap::wasm(
ir::TrapCode::HeapOutOfBounds,
ir::TrapCode::TableOutOfBounds,
)));
}