Currently, in JavaScript runtime, reading more bytes than there are in the stream using readBytes(...) results in KaitaiEOFError being thrown.
However, doing the same (i.e. reading past end of buffer) with other primitive reading functions, such as readU4le(), results in RangeError: Offset is outside the bounds of the DataView.
Shall we make it straight and uniform and fix it to adhere to the same standard (for example, RangeError everywhere)?
Currently, in JavaScript runtime, reading more bytes than there are in the stream using
readBytes(...)
results inKaitaiEOFError
being thrown. However, doing the same (i.e. reading past end of buffer) with other primitive reading functions, such asreadU4le()
, results inRangeError: Offset is outside the bounds of the DataView
.Shall we make it straight and uniform and fix it to adhere to the same standard (for example,
RangeError
everywhere)?