1 2 3 4 5 6 7 8 9 10
use wasm_context::{ Export, ImportExport, Context }; pub fn process( ctx: &mut Context ) { let table = ctx.tables.values_mut().next().unwrap(); *table.as_export_mut() = Export::some( "__indirect_function_table".to_owned() ); }