mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Update rust-mozjs to master.
This commit is contained in:
parent
b6bc49225e
commit
8cba0dff8b
2 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ unsafe extern "C" fn enqueue_job(cx: *mut JSContext,
|
|||
#[allow(unsafe_code)]
|
||||
pub unsafe fn new_rt_and_cx() -> Runtime {
|
||||
LiveDOMReferences::initialize();
|
||||
let runtime = Runtime::new();
|
||||
let runtime = Runtime::new().unwrap();
|
||||
|
||||
JS_AddExtraGCRootsTracer(runtime.rt(), Some(trace_rust_roots), ptr::null_mut());
|
||||
JS_AddExtraGCRootsTracer(runtime.rt(), Some(trace_refcounted_objects), ptr::null_mut());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue