mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
script: Expose new methods for obtaining a global that require a realm. (#36116)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
73e7d38a8d
commit
1df1ba58d6
7 changed files with 42 additions and 19 deletions
|
@ -270,10 +270,10 @@ impl Promise {
|
|||
pub(crate) fn append_native_handler(
|
||||
&self,
|
||||
handler: &PromiseNativeHandler,
|
||||
_comp: InRealm,
|
||||
realm: InRealm,
|
||||
can_gc: CanGc,
|
||||
) {
|
||||
let _ais = AutoEntryScript::new(&handler.global());
|
||||
let _ais = AutoEntryScript::new(&handler.global_(realm));
|
||||
let cx = GlobalScope::get_cx();
|
||||
rooted!(in(*cx) let resolve_func =
|
||||
create_native_handler_function(*cx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue