Get references passed through globals fully working via top level API

This commit is contained in:
Mark McCaskey
2021-02-23 11:52:31 -08:00
parent 79de368c5c
commit 54b76cddfc
5 changed files with 40 additions and 17 deletions

View File

@@ -125,7 +125,7 @@ impl Global {
/// assert_eq!(g.get(), Value::I32(1));
/// ```
pub fn get(&self) -> Val {
self.global.get()
self.global.get(&self.store)
}
/// Sets a custom value [`Val`] to the runtime Global.