Bug
1842773 - Part 11: Make DataView byteOffset and byteLength accessors aware of resizable buffers. r=sfink
DataViews which are baked by a resizable ArrayBuffer can get out-of-bounds when
the ArrayBuffer is shrunk. It can later get again in-bounds when the ArrayBuffer
is grown. That means it's no longer possible to directly read the byte-length
and byte-offset from the reserved slots. Instead all accesses need to validate
the ArrayBufferView is still in-bounds. `mozilla::Maybe` is used to to represent
in-bound and out-of-bounds results.
Differential Revision: https://phabricator.services.mozilla.com/
D183327