mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Modify *::get_cx methods to return a safe JSContext instead of a raw one
This commit is contained in:
parent
2c5d0a6ebc
commit
88cacfb009
43 changed files with 306 additions and 321 deletions
|
@ -157,9 +157,9 @@ fn create_html_element(
|
|||
// Step 6.1.1
|
||||
unsafe {
|
||||
let _ac =
|
||||
JSAutoRealm::new(cx, global.reflector().get_jsobject().get());
|
||||
throw_dom_exception(cx, &global, error);
|
||||
report_pending_exception(cx, true);
|
||||
JSAutoRealm::new(*cx, global.reflector().get_jsobject().get());
|
||||
throw_dom_exception(*cx, &global, error);
|
||||
report_pending_exception(*cx, true);
|
||||
}
|
||||
|
||||
// Step 6.1.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue