mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Use safe JSContext as first argument for throw_dom_exception
This commit is contained in:
parent
6c26518f61
commit
0703a1ad6d
6 changed files with 29 additions and 25 deletions
|
@ -625,7 +625,7 @@ pub fn upgrade_element(definition: Rc<CustomElementDefinition>, element: &Elemen
|
|||
let global = GlobalScope::current().expect("No current global");
|
||||
let cx = global.get_cx();
|
||||
unsafe {
|
||||
throw_dom_exception(*cx, &global, error);
|
||||
throw_dom_exception(cx, &global, error);
|
||||
report_pending_exception(*cx, true);
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue