demo/wasm-util.js
function fetchAndInstantiate() {
    return fetch(url).then(response =>
      response.arrayBuffer()
    ).then(buffer =>
      WebAssembly.instantiate(buffer, importObject)
    )
  }
function fetchAndInstantiate() {
    return fetch(url).then(response =>
      response.arrayBuffer()
    ).then(buffer =>
      WebAssembly.instantiate(buffer, importObject)
    )
  }
function fetchAndInstantiate ( ) { return fetch ( url ) . then ( response => response . arrayBuffer ( ) ) . then ( buffer => WebAssembly . instantiate ( buffer , importObject ) ) }
This helper function fetches 'url', compiles it into a Module, instantiates the Module with the given import object.
This helper function fetches url compiles it into a Module instantiates the Module with the given import object .