mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
script: Mark callback methods with CanGc. (#35753)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
3d320fa96a
commit
5650fa2e79
26 changed files with 133 additions and 67 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue