Content-Length: 154062 | pFad | https://developer.mozilla.org/en-US/docs/Web/API/TextDecoderStream/fatal

TextDecoderStream: fatal property - Web APIs | MDN

TextDecoderStream: fatal property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2022.

Note: This feature is available in Web Workers.

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.

If the property is true then a decoder will throw a TypeError if it encounters malformed data while decoding. If false the decoder will substitute the invalid data with the replacement character U+FFFD (�). The value of the property is set in the TextDecoderStream() constructor.

Value

A boolean which will return true if the error mode is set to "fatal". Otherwise it returns false, indicating that the error mode is "replacement".

Examples

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

Specifications

Specification
Encoding
# dom-textdecoder-fatal

Browser compatibility









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://developer.mozilla.org/en-US/docs/Web/API/TextDecoderStream/fatal

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy