add simple rust example

This commit is contained in:
2021-11-06 18:52:52 +01:00
parent 2178ca5296
commit 32d2519d2d
5 changed files with 60 additions and 2 deletions

View File

@@ -440,10 +440,10 @@ fn remap_function(
De::BrTable { .. } => todo!(),
De::Return => En::Return,
De::Call { function_index } => En::Call(
dbg!(*function_map
*function_map
.get(&function_index)
.ok_or_else(|| anyhow!("Function index out of range: {}", function_index))?,
)),
),
De::CallIndirect { .. }
| De::ReturnCall { .. }
| De::ReturnCallIndirect { .. }