diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-31 01:13:59 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-31 14:54:19 +0200 |
commit | 88f8a22269482f798c8c63af4d179e3b6149d505 (patch) | |
tree | 4d4d5bc47ac73c9dd9c195798840377db0cd2f0a /components/script/script_runtime.rs | |
parent | 3eb9403b4d7309ccfa030348fa174b0decc958d7 (diff) | |
download | servo-88f8a22269482f798c8c63af4d179e3b6149d505.tar.gz servo-88f8a22269482f798c8c63af4d179e3b6149d505.zip |
Bump rust-mozjs for the safe Runtime::new (fixes #11512)
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r-- | components/script/script_runtime.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index 2b2e2437e16..543574ccc62 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -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()); |