mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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
|
@ -158,7 +158,7 @@ fn create_html_element(
|
|||
unsafe {
|
||||
let _ac =
|
||||
JSAutoRealm::new(*cx, global.reflector().get_jsobject().get());
|
||||
throw_dom_exception(*cx, &global, error);
|
||||
throw_dom_exception(cx, &global, error);
|
||||
report_pending_exception(*cx, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue