Use safe JSContext as first argument for throw_dom_exception

This commit is contained in:
marmeladema 2019-07-27 19:36:21 +01:00
parent 6c26518f61
commit 0703a1ad6d
6 changed files with 29 additions and 25 deletions

View file

@ -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);
}