mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make create_global_object take a &'static Class
This commit is contained in:
parent
a4f2159e36
commit
5f59bb2e0c
2 changed files with 2 additions and 2 deletions
|
@ -2516,7 +2516,7 @@ let _rt = RootedTraceable::new(&*raw);
|
|||
rooted!(in(cx) let obj =
|
||||
create_global_object(
|
||||
cx,
|
||||
&Class.base as *const js::jsapi::Class as *const _,
|
||||
&*(&Class.base as *const js::jsapi::Class as *const _),
|
||||
raw as *const libc::c_void,
|
||||
_trace));
|
||||
assert!(!obj.is_null());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue