1Module.onRuntimeInitialized = () => { 2 const foo1 = new Module["Foo"]("Constructed from JS"); 3 const foo2 = Module["foo"](); 4 const foo3 = Module["pFoo"](); 5 setTimeout(gc, 100); 6} 7 8