sliceBuffer = (buffer, start = undefined, end = undefined) => {
  try {
    // @ts-expect-error We know it is really there
    return apply(sliceOfImmutable, buffer, [start, end]);
  } catch (err) {
    if (err instanceof TypeError) {
      return arrayBufferSlice(buffer, start, end);
    }
    throw err;
  }
}
Enforces that `arrayBuffer` is a genuine `ArrayBuffer` exotic object.

@param {ArrayBuffer} buffer
@param {number} [start]
@param {number} [end]
@returns {ArrayBuffer}