File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,9 @@ impl ReadableByteStreamController {
78
78
reflect_dom_object ( Box :: new ( Self :: new_inherited ( stream) ) , global)
79
79
}
80
80
81
- /// <https://streams.spec.whatwg.org/#readable-stream-default -controller-should-call-pull>
81
+ /// <https://streams.spec.whatwg.org/#readable-byte-stream -controller-should-call-pull>
82
82
fn should_call_pull ( & self ) -> bool {
83
+ // TODO
83
84
// Step 1
84
85
let stream = & self . stream ;
85
86
// Step 2
@@ -286,7 +287,7 @@ fn set_up_readable_byte_stream_controller(
286
287
Ok ( ( ) )
287
288
}
288
289
289
- /// <https://streams.spec.whatwg.org/#readable-stream-default -controller-call-pull-if-needed>
290
+ /// <https://streams.spec.whatwg.org/#readable-byte-stream -controller-call-pull-if-needed>
290
291
fn readable_byte_stream_controller_call_pull_if_needed (
291
292
cx : SafeJSContext ,
292
293
controller : DomRoot < ReadableByteStreamController > ,
@@ -442,7 +443,6 @@ impl UnderlyingSourceAlgorithms {
442
443
ExceptionHandling :: Rethrow ,
443
444
)
444
445
} else {
445
- // let global = controller.global();
446
446
Promise :: new_resolved (
447
447
& GlobalScope :: current ( ) . expect ( "No current global" ) ,
448
448
cx,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ impl ReadableStream {
78
78
pub fn Constructor (
79
79
cx : SafeJSContext ,
80
80
global : & GlobalScope ,
81
- _proto : Option < SafeHandleObject > ,
81
+ proto : Option < SafeHandleObject > ,
82
82
underlying_source : Option < * mut JSObject > ,
83
83
strategy : & QueuingStrategy ,
84
84
) -> Fallible < DomRoot < Self > > {
Original file line number Diff line number Diff line change @@ -415,7 +415,6 @@ impl UnderlyingSourceAlgorithms {
415
415
ExceptionHandling :: Rethrow ,
416
416
)
417
417
} else {
418
- // let global = controller.global();
419
418
Promise :: new_resolved (
420
419
& GlobalScope :: current ( ) . expect ( "No current global" ) ,
421
420
cx,
You can’t perform that action at this time.
0 commit comments