File: table2.html

package info (click to toggle)
node-playwright 1.38.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 32,728 kB
  • sloc: javascript: 114,018; sh: 899; java: 372; xml: 247; cs: 118; python: 29; makefile: 12
file content (9 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
<script>
async function loadTable() {
  const tbl = new WebAssembly.Table({ initial: 2, element: 'anyfunc' });
  const response = await fetch('table2.wasm');
  const body = await response.arrayBuffer();
  await WebAssembly.instantiate(body, { js: { tbl: tbl } });
  return `${tbl.get(0)()}, ${tbl.get(1)()}`;
}
</script>