MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / global_set

Method global_set

crates/tinywasm/src/instance.rs:580–582  ·  view source on GitHub ↗

Set the value of a mutable global export by name.

(&self, store: &mut Store, name: &str, value: WasmValue)

Source from the content-addressed store, hash-verified

578
579 /// Set the value of a mutable global export by name.
580 pub fn global_set(&self, store: &mut Store, name: &str, value: WasmValue) -> Result<()> {
581 self.global(name)?.set(store, value)
582 }
583
584 /// Get a global by its module-local index.
585 ///

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
globalMethod · 0.45

Tested by

no test coverage detected