mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -216,7 +216,7 @@ pub type TraceHook =
|
|||
/// Create a global object with the given class.
|
||||
pub unsafe fn create_global_object(
|
||||
cx: *mut JSContext,
|
||||
class: *const JSClass,
|
||||
class: &'static JSClass,
|
||||
private: *const libc::c_void,
|
||||
trace: TraceHook)
|
||||
-> *mut JSObject {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue