Make StructuredCloneData::read take a &GlobalScope

This commit is contained in:
Anthony Ramine 2016-10-01 21:09:57 +02:00
parent ac5a4adf5f
commit b3393fba18
5 changed files with 7 additions and 7 deletions

View file

@ -1771,7 +1771,7 @@ impl Runnable for PostMessageHandler {
let _ac = JSAutoCompartment::new(cx, globalhandle.get());
rooted!(in(cx) let mut message = UndefinedValue());
this.message.read(GlobalRef::Window(&*window), message.handle_mut());
this.message.read(window.upcast(), message.handle_mut());
// Step 11-12.
// TODO(#12719): set the other attributes.