From b0b0289014b707505a6921152b9ecba75afa207f Mon Sep 17 00:00:00 2001 From: Auguste Baum <52001167+augustebaum@users.noreply.github.com> Date: Sun, 23 Feb 2025 01:34:51 +0100 Subject: refactor: propagate CanGc arguments through callers (#35591) Signed-off-by: Auguste Baum --- components/script/script_runtime.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'components/script/script_runtime.rs') 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; } -- cgit v1.2.3