mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +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
|
@ -654,7 +654,7 @@ impl HTMLScriptElement {
|
|||
} else {
|
||||
self.line_number as u32
|
||||
};
|
||||
rooted!(in(window.get_cx()) let mut rval = UndefinedValue());
|
||||
rooted!(in(*window.get_cx()) let mut rval = UndefinedValue());
|
||||
let global = window.upcast::<GlobalScope>();
|
||||
global.evaluate_script_on_global_with_result(
|
||||
&script.text,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue