mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
02199520f2
commit
b0b0289014
74 changed files with 403 additions and 275 deletions
|
@ -1073,6 +1073,7 @@ unsafe extern "C" fn consume_stream(
|
|||
cx,
|
||||
&global,
|
||||
Error::Type("Response has unsupported MIME type".to_string()),
|
||||
CanGc::note(),
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
@ -1085,6 +1086,7 @@ unsafe extern "C" fn consume_stream(
|
|||
cx,
|
||||
&global,
|
||||
Error::Type("Response.type must be 'basic', 'cors' or 'default'".to_string()),
|
||||
CanGc::note(),
|
||||
);
|
||||
return false;
|
||||
},
|
||||
|
@ -1096,6 +1098,7 @@ unsafe extern "C" fn consume_stream(
|
|||
cx,
|
||||
&global,
|
||||
Error::Type("Response does not have ok status".to_string()),
|
||||
CanGc::note(),
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
@ -1106,6 +1109,7 @@ unsafe extern "C" fn consume_stream(
|
|||
cx,
|
||||
&global,
|
||||
Error::Type("There was an error consuming the Response".to_string()),
|
||||
CanGc::note(),
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
@ -1116,6 +1120,7 @@ unsafe extern "C" fn consume_stream(
|
|||
cx,
|
||||
&global,
|
||||
Error::Type("Response already consumed".to_string()),
|
||||
CanGc::note(),
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
@ -1126,6 +1131,7 @@ unsafe extern "C" fn consume_stream(
|
|||
cx,
|
||||
&global,
|
||||
Error::Type("expected Response or Promise resolving to Response".to_string()),
|
||||
CanGc::note(),
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue