// define global
(global $g (mut i32) (i32.const 0))
// get global
(get_global $g)
// set global
(set_global $g (i32.const 10))
const global = new WebAssembly.Global({value:'i32', mutable:true}, 0);
var importObject = { js: { global: global} };
WebAssembly.instantiate(wasmModule.toBinary({}).buffer, importObject).then(function(res) {
});
// import
(global $g (import "js" "global") (mut i32))