aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-05-31 01:13:59 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-05-31 14:54:19 +0200
commit88f8a22269482f798c8c63af4d179e3b6149d505 (patch)
tree4d4d5bc47ac73c9dd9c195798840377db0cd2f0a /components/script/script_thread.rs
parent3eb9403b4d7309ccfa030348fa174b0decc958d7 (diff)
downloadservo-88f8a22269482f798c8c63af4d179e3b6149d505.tar.gz
servo-88f8a22269482f798c8c63af4d179e3b6149d505.zip
Bump rust-mozjs for the safe Runtime::new (fixes #11512)
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index a1e563d23d1..20a8602a249 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -521,7 +521,7 @@ impl ScriptThread {
port: Receiver<MainThreadScriptMsg>,
chan: Sender<MainThreadScriptMsg>)
-> ScriptThread {
- let runtime = unsafe { new_rt_and_cx(ptr::null_mut()) };
+ let runtime = unsafe { new_rt_and_cx() };
unsafe {
JS_SetWrapObjectCallbacks(runtime.rt(),