blob: 74eb90e3814de44308ec14483b0682c70a88782f [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://encoding.spec.whatwg.org/#interface-textdecoderstream
[
Exposed=(Window,Worker),
Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options),
ConstructorCallWith=ScriptState,
RaisesException=Constructor,
MeasureAs=TextDecoderStreamConstructor,
RuntimeEnabled=EncodingStreams
] interface TextDecoderStream {
readonly attribute DOMString encoding;
readonly attribute boolean fatal;
readonly attribute boolean ignoreBOM;
readonly attribute ReadableStream readable;
[CallWith=ScriptState, RaisesException] readonly attribute any writable;
};