aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_runtime.rs
diff options
context:
space:
mode:
authorAuguste Baum <52001167+augustebaum@users.noreply.github.com>2025-02-23 01:34:51 +0100
committerGitHub <noreply@github.com>2025-02-23 00:34:51 +0000
commitb0b0289014b707505a6921152b9ecba75afa207f (patch)
treef2ffba650cf28da83904b14e94ba3913967951f2 /components/script/script_runtime.rs
parent02199520f2b611c9b5ab7b34a2372689cb4c22cd (diff)
downloadservo-b0b0289014b707505a6921152b9ecba75afa207f.tar.gz
servo-b0b0289014b707505a6921152b9ecba75afa207f.zip
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r--components/script/script_runtime.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs
index 584555c2d0f..ac16a79dda8 100644
--- a/components/script/script_runtime.rs
+++ b/components/script/script_runtime.rs
@@ -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;
}