mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename Reflectable::global_scope to global
This commit is contained in:
parent
b6bbd41e11
commit
d8e92bb271
37 changed files with 151 additions and 151 deletions
|
@ -128,7 +128,7 @@ impl Worker {
|
|||
return;
|
||||
}
|
||||
|
||||
let global = worker.global_scope();
|
||||
let global = worker.global();
|
||||
let target = worker.upcast();
|
||||
let _ac = JSAutoCompartment::new(global.get_cx(), target.reflector().get_jsobject().get());
|
||||
rooted!(in(global.get_cx()) let mut message = UndefinedValue());
|
||||
|
@ -143,7 +143,7 @@ impl Worker {
|
|||
|
||||
#[allow(unsafe_code)]
|
||||
fn dispatch_error(&self, error_info: ErrorInfo) {
|
||||
let global = self.global_scope();
|
||||
let global = self.global();
|
||||
let event = ErrorEvent::new(&global,
|
||||
atom!("error"),
|
||||
EventBubbles::DoesNotBubble,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue