Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

321 B
Raw Blame
<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>