mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
integrate readablestream with fetch and blob
This commit is contained in:
parent
0281acea95
commit
bd5796c90b
74 changed files with 2219 additions and 899 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
#![allow(dead_code)]
|
||||
|
||||
use crate::body::BodyOperations;
|
||||
use crate::body::BodyMixin;
|
||||
use crate::dom::bindings::codegen::Bindings::PromiseBinding::PromiseJobCallback;
|
||||
use crate::dom::bindings::codegen::Bindings::ResponseBinding::ResponseBinding::ResponseMethods;
|
||||
use crate::dom::bindings::codegen::Bindings::ResponseBinding::ResponseType as DOMResponseType;
|
||||
|
@ -979,7 +979,7 @@ unsafe extern "C" fn consume_stream(
|
|||
}
|
||||
|
||||
// Step 2.6.2 If response body is alreaady consumed, return with a TypeError and abort these substeps.
|
||||
if unwrapped_source.get_body_used() {
|
||||
if unwrapped_source.is_disturbed() {
|
||||
throw_dom_exception(
|
||||
cx,
|
||||
&global,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue