title: Offset is outside the bounds of the DataView, the debugger shows it is inside the bounds
body: <p>I get the error <code>Offset is outside the bounds of the DataView</code> for the following code</p>
  <pre><code>let data = [...] // some array of Int16
  let buf = new ArrayBuffer(data.length);
  let dataView = new DataView(buf);
  
  data.forEach((b, i) =&gt; {
     dataView.setInt16(i, b);
  });
  </code></pre>
  <p>Here is the debug view in Chrome</p>
  <p><a href="https://i.stack.imgur.com/PUTaT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PUTaT.png" alt="enter image description here" /></a></p>
  <p>You can see that <code>i</code> is <code>47999</code> and the buffer size of my <code>DataView</code> is <code>48000</code>. What am I missing here?</p>