blob: 8cb0ff8c53313aff942ced7f112bc7795c608c21 [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.
] interface WritableStream {
[CallWith=ScriptState, RaisesException, MeasureAs=WritableStreamConstructor] constructor(optional any underlyingSink, optional any strategy);
[NotEnumerable] readonly attribute boolean locked;
[RaisesException, CallWith=ScriptState, NotEnumerable] Promise<void> abort(
optional any reason);
[RaisesException, CallWith=ScriptState, NotEnumerable] Promise<void> close();
[RaisesException, CallWith=ScriptState, NotEnumerable] WritableStreamDefaultWriter getWriter();