mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
02199520f2
commit
b0b0289014
74 changed files with 403 additions and 275 deletions
|
@ -581,7 +581,7 @@ impl CustomElementRegistryMethods<crate::DomTypeHolder> for CustomElementRegistr
|
|||
promise.reject_native(&DOMException::new(
|
||||
self.window.as_global_scope(),
|
||||
DOMErrorName::SyntaxError,
|
||||
CanGc::note(),
|
||||
can_gc,
|
||||
));
|
||||
return promise;
|
||||
}
|
||||
|
@ -850,7 +850,7 @@ pub(crate) fn upgrade_element(
|
|||
let global = GlobalScope::current().expect("No current global");
|
||||
let cx = GlobalScope::get_cx();
|
||||
let ar = enter_realm(&*global);
|
||||
throw_dom_exception(cx, &global, error);
|
||||
throw_dom_exception(cx, &global, error, can_gc);
|
||||
report_pending_exception(cx, true, InRealm::Entered(&ar), can_gc);
|
||||
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue