diff options
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 89b4ceab185..cc2ec2b8e4a 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -3697,7 +3697,7 @@ impl ScriptThread { // Script source is ready to be evaluated (11.) let _ac = enter_realm(global_scope); - rooted!(in(*global_scope.get_cx()) let mut jsval = UndefinedValue()); + rooted!(in(*GlobalScope::get_cx()) let mut jsval = UndefinedValue()); global_scope.evaluate_js_on_global_with_result( &script_source, jsval.handle_mut(), @@ -3708,7 +3708,7 @@ impl ScriptThread { load_data.js_eval_result = if jsval.get().is_string() { unsafe { let strval = DOMString::from_jsval( - *global_scope.get_cx(), + *GlobalScope::get_cx(), jsval.handle(), StringificationBehavior::Empty, ); |