title: What is the equivalent of `fs.readFileSync` but in the browser?
body: <p>If I read a wasm file in Node with <code>fs.readFileSync</code> I get the file in the format I want but when I try and do the exact same thing in the browser with the file reader I somehow get the wrong format?</p>
  
  <p>What is the equivalent of <code>fs.readFileSync</code> but in the browser?</p>
  
  <p>Does <code>fs.readFileSync</code> treat the file as an array buffer or a Binary string or something else?</p>
  
  <pre><code>&lt;input type="file" onchange="_readWasmFile"&gt;
  </code></pre>
  
  <p>and the js</p>
  
  <pre><code>_readWasmFile(event) {
    const file = event.target.files[0];
    let reader = new FileReader();
    reader.readAsBinaryString(file);
    reader.onload = () =&gt; {
        this.sendWasm = reader.result;
    };
  }
  </code></pre>