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.

Syntax

var fatal = TextDecoderStream.fatal;

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 Status Comment
Encoding
The definition of 'TextDecoderStream.fatal' in that specification.
Living Standard Initial definition.

Browser compatibility

BCD tables only load in the browser