mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Mark CompileFunction as a potential GC operation. (#33937)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
9acb25521e
commit
dc03d1f3e2
5 changed files with 35 additions and 19 deletions
|
@ -28,7 +28,7 @@ use crate::dom::bindings::trace::RootedTraceableBox;
|
|||
use crate::dom::bindings::transferable::Transferable;
|
||||
use crate::dom::eventtarget::EventTarget;
|
||||
use crate::dom::globalscope::GlobalScope;
|
||||
use crate::script_runtime::JSContext as SafeJSContext;
|
||||
use crate::script_runtime::{CanGc, JSContext as SafeJSContext};
|
||||
|
||||
#[dom_struct]
|
||||
/// The MessagePort used in the DOM.
|
||||
|
@ -327,7 +327,7 @@ impl MessagePortMethods for MessagePort {
|
|||
return None;
|
||||
}
|
||||
let eventtarget = self.upcast::<EventTarget>();
|
||||
eventtarget.get_event_handler_common("message")
|
||||
eventtarget.get_event_handler_common("message", CanGc::note())
|
||||
}
|
||||
|
||||
/// <https://html.spec.whatwg.org/multipage/#handler-messageport-onmessage>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue