mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +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
|
@ -126,7 +126,7 @@ impl DataTransferItemMethods<crate::DomTypeHolder> for DataTransferItem {
|
|||
let maybe_index = this.root().pending_callbacks.borrow().iter().position(|val| val.id == id);
|
||||
if let Some(index) = maybe_index {
|
||||
let callback = this.root().pending_callbacks.borrow_mut().swap_remove(index).callback;
|
||||
let _ = callback.Call__(DOMString::from(string), ExceptionHandling::Report);
|
||||
let _ = callback.Call__(DOMString::from(string), ExceptionHandling::Report, CanGc::note());
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue