Skip to main content

text_decoder_ctor

Function text_decoder_ctor 

Source
pub(crate) fn text_decoder_ctor(
    it: &mut Interp,
    _t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

new TextDecoder(label = "utf-8", {fatal = false, ignoreBOM = false})。 ラベルを正規化できない(未知、または本体が復号表を持たない符号化。normalize_text_encoding_label 参照)と RangeError。 encoding・fatal・ignoreBOM は読み取り専用の属性(アクセサ)。