• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1function call_later(f) {
2  const builder = new WasmModuleBuilder();
3  const functionIndex = builder.addImport("module", "imported", kSig_v_v);
4  builder.addStart(functionIndex);
5  const buffer = builder.toBuffer();
6
7  WebAssembly.instantiate(buffer, {
8    "module": {
9      "imported": f,
10    }
11  });
12}
13