TextDecoderStream.fatal

The fatal read-only property of the TextDecoderStream interface is a boolean indicating if the error mode of the TextDecoderStream object is set to fatal.

The two possible values of error mode are fatal or replacement, the default being replacement which pushes a replacement character U+FFFD (�) to the output.

Value

A boolean which will return true if the error mode is set to fatal. Otherwise it returns false.

Examples

stream = new TextDecoderStream();
console.log(stream.fatal); // returns false

Specifications

Specification
Encoding
# dom-textdecoder-fatal

Browser compatibility

BCD tables only load in the browser