blob: 9fe584233f694185cef0be6e33fff0abd1b0da01 [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;
readonly attribute WritableStream writable;
};