(&mut self, name: &'static str)
| 12 | |
| 13 | impl Vm { |
| 14 | pub fn get_global(&mut self, name: &'static str) -> Option<ReturnValue> { |
| 15 | self.arena.mutate_root(|_mc, state| { |
| 16 | let name = state.intern_static(name); |
| 17 | state.globals.get(&name).copied().map(ReturnValue::from) |
| 18 | }) |
| 19 | } |
| 20 | |
| 21 | pub fn register_extra_native_functions(&mut self) { |
| 22 | self.arena.mutate_root(|_mc, state| { |
nothing calls this directly
no test coverage detected