TextDecoderStream.fatal
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2022年9月.
TextDecoderStream 接口的只读属性 fatal 是一个 boolean,表示 TextDecoderStream 对象的错误模式是否设置为 fatal。
两个可能的错误模式为 fatal 或者 replacement,默认是 replacement,它将一个替换字符 U+FFFD(�)推送到输出。