mirror of
https://github.com/servo/servo.git
synced 2025-10-05 11:09:22 +01:00
Pass a JSRef to RegisterBindings::Register.
JS<T> should only be used for members of traced structures; the correct type for arguments is JSRef.
This commit is contained in:
parent
57e8be0c8f
commit
44f57ae6da
2 changed files with 3 additions and 3 deletions
|
@ -956,7 +956,7 @@ impl ScriptTask {
|
|||
|
||||
with_compartment((**cx).ptr, window.reflector().get_jsobject(), || {
|
||||
let mut js_info = page.mut_js_info();
|
||||
RegisterBindings::Register(&window.unrooted(), js_info.get_mut_ref());
|
||||
RegisterBindings::Register(&*window, js_info.get_mut_ref());
|
||||
});
|
||||
|
||||
self.compositor.set_ready_state(Loading);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue