| Index: Source/core/streams/ReadableStream.idl
|
| diff --git a/Source/core/streams/ReadableStream.idl b/Source/core/streams/ReadableStream.idl
|
| index 927fa94b9a9604b286a95cbc8edbee1d4f3eb020..9d299d2907b669b4dc263bbd49f300532d4108a3 100644
|
| --- a/Source/core/streams/ReadableStream.idl
|
| +++ b/Source/core/streams/ReadableStream.idl
|
| @@ -2,8 +2,22 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +enum ReadableStreamState {
|
| + "readable",
|
| + "waiting",
|
| + "closed",
|
| + "errored"
|
| +};
|
| +
|
| [
|
| RuntimeEnabled=Stream,
|
| GarbageCollected
|
| ] interface ReadableStream {
|
| + [CallWith=ScriptState, RaisesException] any read();
|
| + [CallWith=ScriptState] Promise wait();
|
| + [ImplementedAs=stateString] readonly attribute ReadableStreamState state;
|
| +
|
| + [CallWith=ScriptState] Promise cancel(any reason);
|
| +
|
| + [CallWith=ScriptState] readonly attribute Promise closed;
|
| };
|
|
|