mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Bump rust-mozjs for the safe Runtime::new (fixes #11512)
This commit is contained in:
parent
3eb9403b4d
commit
88f8a22269
5 changed files with 8 additions and 6 deletions
|
@ -95,9 +95,9 @@ impl<'a> Drop for StackRootTLS<'a> {
|
|||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
pub unsafe fn new_rt_and_cx(parent_rt: *mut JSRuntime) -> Runtime {
|
||||
pub unsafe fn new_rt_and_cx() -> Runtime {
|
||||
LiveDOMReferences::initialize();
|
||||
let runtime = Runtime::new(parent_rt);
|
||||
let runtime = Runtime::new();
|
||||
|
||||
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