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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
fatal
71
79
No
No
58
14.1
71
71
No
50
14.5
10.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/TextDecoderStream/fatal