1import * as mod from "./wasm-js-cycle.wasm"; 2 3let jsGlob = new WebAssembly.Global({ value: "i32", mutable: true }, 42); 4let jsMem = new WebAssembly.Memory({ initial: 10 }); 5let jsTab = new WebAssembly.Table({ initial: 10, element: "anyfunc" }); 6let jsFunc = () => { return 42; }; 7 8export { jsGlob, jsMem, jsTab, jsFunc }; 9 10export function mutateBindings() { 11 jsGlob = 0; 12 jsMem = 0; 13 jsTab = 0; 14 jsFunc = 0; 15} 16