That is how we support references in the Rust toolchain right now, via wasm-bindgen, and it's an important part of making unforgable references work for languages that rely on linear memory.
It doesn't help with making capabilities more fine-grained, though: we have to treat all code that has access to that table as having the same level of trust.
It doesn't help with making capabilities more fine-grained, though: we have to treat all code that has access to that table as having the same level of trust.