diff options
author | Josh Matthews <josh@joshmatthews.net> | 2025-03-03 07:17:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-03 12:17:25 +0000 |
commit | 5650fa2e79e03b83667c204f4ea0cf5ce6722615 (patch) | |
tree | 8362e3db4f9543b7df47955b1f2cd6602128e3d9 /components/script/timers.rs | |
parent | 3d320fa96ae2ca95a720c454c47ee7827864c5af (diff) | |
download | servo-5650fa2e79e03b83667c204f4ea0cf5ce6722615.tar.gz servo-5650fa2e79e03b83667c204f4ea0cf5ce6722615.zip |
script: Mark callback methods with CanGc. (#35753)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r-- | components/script/timers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs index a08f06bf90e..9d14b594e86 100644 --- a/components/script/timers.rs +++ b/components/script/timers.rs @@ -558,7 +558,7 @@ impl JsTimerTask { InternalTimerCallback::FunctionTimerCallback(ref function, ref arguments) => { let arguments = self.collect_heap_args(arguments); rooted!(in(*GlobalScope::get_cx()) let mut value: JSVal); - let _ = function.Call_(this, arguments, value.handle_mut(), Report); + let _ = function.Call_(this, arguments, value.handle_mut(), Report, can_gc); }, }; ScriptThread::set_user_interacting(was_user_interacting); |