新增于: v16.6.0
encoding <string> 指定此 TextDecoder 实例支持的 encoding。默认值: 'utf-8'。
options <Object>
fatal <boolean> 如果解码失败为致命,则为 true。
ignoreBOM <boolean> 当为 true 时,TextDecoderStream 会在解码结果中包含字节顺序标记。当为 false 时,字节顺序标记会从输出中移除。此选项仅在 encoding 为 'utf-8'、'utf-16be' 或 'utf-16le' 时使用。默认值: false。
创建一个新的 TextDecoderStream 实例。
【Creates a new TextDecoderStream instance.】