The WHATWG text decoder. With fatal: true TextDecoder.decode throws a TypeError on bytes that are not valid UTF-8 instead of replacing them with U+FFFD; with ignoreBOM: true a leading byte order mark is kept as U+FEFF instead of being dropped.
fatal: true
ignoreBOM: true
The text of bytes; throws as the constructor's options say.
bytes
The WHATWG text decoder. With
fatal: trueTextDecoder.decode throws a TypeError on bytes that are not valid UTF-8 instead of replacing them with U+FFFD; withignoreBOM: truea leading byte order mark is kept as U+FEFF instead of being dropped.