demo/wasm-util.js
function fetchAndInstantiate(url, importObject) {
  return fetch(url).then(response =>
    response.arrayBuffer()
  ).then(bytes =>
    WebAssembly.instantiate(bytes, importObject)
  ).then(results =>
    results.instance
  );
}
function fetchAndInstantiate(url, importObject) {
  return fetch(url).then(response =>
    response.arrayBuffer()
  ).then(bytes =>
    WebAssembly.instantiate(bytes, importObject)
  ).then(results =>
    results.instance
  );
}
function fetchAndInstantiate ( url , importObject ) { return fetch ( url ) . then ( response => response . arrayBuffer ( ) ) . then ( bytes => WebAssembly . instantiate ( bytes , importObject ) ) . then ( results => results . instance ) ; }
This library function fetches the wasm module at 'url', instantiates it with the given 'importObject', and returns the instantiated object instance
This library function fetches the wasm module at url instantiates it with the given importObject and returns the instantiated object instance