Mark CompileFunction as a potential GC operation. (#33937)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-10-21 08:29:50 -04:00 committed by GitHub
parent 9acb25521e
commit dc03d1f3e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 35 additions and 19 deletions

View file

@ -271,6 +271,7 @@ impl Event {
object,
self,
Some(ListenerPhase::Capturing),
can_gc,
);
}
@ -290,6 +291,7 @@ impl Event {
object,
self,
Some(ListenerPhase::Bubbling),
can_gc,
);
}
}
@ -639,6 +641,7 @@ fn invoke(
object: &EventTarget,
event: &Event,
phase: Option<ListenerPhase>,
can_gc: CanGc,
// TODO legacy_output_did_listeners_throw for indexeddb
) {
// Step 1: Until shadow DOM puts the event path in the
@ -657,7 +660,7 @@ fn invoke(
event.current_target.set(Some(object));
// Step 6
let listeners = object.get_listeners_for(&event.type_(), phase);
let listeners = object.get_listeners_for(&event.type_(), phase, can_gc);
// Step 7.
let found = inner_invoke(timeline_window, object, event, &listeners);