mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
|
@ -101,9 +101,13 @@ impl PerformanceObserver {
|
|||
let observer_entry_list =
|
||||
PerformanceObserverEntryList::new(&self.global(), entry_list, can_gc);
|
||||
// using self both as thisArg and as the second formal argument
|
||||
let _ = self
|
||||
.callback
|
||||
.Call_(self, &observer_entry_list, self, ExceptionHandling::Report);
|
||||
let _ = self.callback.Call_(
|
||||
self,
|
||||
&observer_entry_list,
|
||||
self,
|
||||
ExceptionHandling::Report,
|
||||
can_gc,
|
||||
);
|
||||
}
|
||||
|
||||
pub(crate) fn callback(&self) -> Rc<PerformanceObserverCallback> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue