Index: core/streams/ReadableStream.idl |
diff --git a/core/streams/ReadableStream.idl b/core/streams/ReadableStream.idl |
index 9d299d2907b669b4dc263bbd49f300532d4108a3..33fbddc153a7d6508c76482eae7ab735bd8bdf9c 100644 |
--- a/core/streams/ReadableStream.idl |
+++ b/core/streams/ReadableStream.idl |
@@ -2,22 +2,10 @@ |
// 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 |
+ GarbageCollected, |
+ Exposed=(Window,Worker), |
] 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; |
+ [CallWith=ExecutionContext, RaisesException] ReadableStreamReader getReader(); |
+ [CallWith=ScriptState] Promise<void> cancel(optional any reason); |
}; |