mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01: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
|
@ -517,7 +517,7 @@ impl JsTimerTask {
|
|||
InternalTimerCallback::StringTimerCallback(ref code_str) => {
|
||||
let global = this.global();
|
||||
let cx = global.get_cx();
|
||||
rooted!(in(cx) let mut rval = UndefinedValue());
|
||||
rooted!(in(*cx) let mut rval = UndefinedValue());
|
||||
|
||||
global.evaluate_js_on_global_with_result(code_str, rval.handle_mut());
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue