blob: 286489d726e8c99b7fae5bd312ed0633ed7369ae [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
] interface TextDecoderStream {
readonly attribute DOMString encoding;
readonly attribute boolean fatal;
readonly attribute boolean ignoreBOM;
readonly attribute ReadableStream readable;
readonly attribute WritableStream writable;
};