A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Add a missing `RootScope` in `wasm_table_get` (#14913)
Alex Crichtoncc032d9f1266
diff --git a/crates/c-api/src/table.rs b/crates/c-api/src/table.rsindex a032c42b9e..21ef2ec7a9 100644--- a/crates/c-api/src/table.rs+++ b/crates/c-api/src/table.rs@@ -73,7 +73,8 @@ pub unsafe extern "C" fn wasm_table_get(index: wasm_table_size_t,) -> Option<Box<wasm_ref_t>> {let table = t.table();- let r = table.get(t.ext.store.context_mut(), u64::from(index))?;+ let mut store = RootScope::new(t.ext.store.context_mut());+ let r = table.get(&mut store, u64::from(index))?;wasm_ref_t::new(r)}