mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
refactor: add CanGc as argument to Promise::resolve (#35616)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
adb831eefe
commit
0383ba9a5b
57 changed files with 330 additions and 294 deletions
|
@ -464,9 +464,9 @@ impl Response {
|
|||
}
|
||||
|
||||
#[cfg_attr(crown, allow(crown::unrooted_must_root))]
|
||||
pub(crate) fn finish(&self) {
|
||||
pub(crate) fn finish(&self, can_gc: CanGc) {
|
||||
if let Some(body) = self.body_stream.get() {
|
||||
body.controller_close_native();
|
||||
body.controller_close_native(can_gc);
|
||||
}
|
||||
let stream_consumer = self.stream_consumer.borrow_mut().take();
|
||||
if let Some(stream_consumer) = stream_consumer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue