diff options
Diffstat (limited to 'components/script/dom/readablestream.rs')
-rw-r--r-- | components/script/dom/readablestream.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/readablestream.rs b/components/script/dom/readablestream.rs index 563ba5ce977..ca280b4326e 100644 --- a/components/script/dom/readablestream.rs +++ b/components/script/dom/readablestream.rs @@ -103,7 +103,7 @@ impl ReadableStream { /// Build a stream backed by a Rust source that has already been read into memory. pub fn new_from_bytes(global: &GlobalScope, bytes: Vec<u8>) -> DomRoot<ReadableStream> { let stream = ReadableStream::new_with_external_underlying_source( - &global, + global, ExternalUnderlyingSource::Memory(bytes.len()), ); stream.enqueue_native(bytes); @@ -123,7 +123,7 @@ impl ReadableStream { let source = Rc::new(ExternalUnderlyingSourceController::new(source)); - let stream = ReadableStream::new(&global, Some(source.clone())); + let stream = ReadableStream::new(global, Some(source.clone())); unsafe { let js_wrapper = CreateReadableStreamUnderlyingSource( |