mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make StructuredCloneData::read take a &GlobalScope
This commit is contained in:
parent
ac5a4adf5f
commit
b3393fba18
5 changed files with 7 additions and 7 deletions
|
@ -134,7 +134,7 @@ impl Worker {
|
|||
let target = worker.upcast();
|
||||
let _ac = JSAutoCompartment::new(global.r().get_cx(), target.reflector().get_jsobject().get());
|
||||
rooted!(in(global.r().get_cx()) let mut message = UndefinedValue());
|
||||
data.read(global.r(), message.handle_mut());
|
||||
data.read(global.r().as_global_scope(), message.handle_mut());
|
||||
MessageEvent::dispatch_jsval(target, global.r(), message.handle());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue