aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-04-21 15:41:44 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-04-21 15:41:44 +0530
commit7e370c4df4ee0c564322a0bebd34b31359e88d85 (patch)
treec6f8bae4672881ab707477dab71cdcb876bbbe24 /components/script/script_thread.rs
parent9c172f49d08fe9019b0ba193ea4d75c6ddb95cda (diff)
parent12b922b67f969bd05088bfc1b8aebe6dcd059a78 (diff)
downloadservo-7e370c4df4ee0c564322a0bebd34b31359e88d85.tar.gz
servo-7e370c4df4ee0c564322a0bebd34b31359e88d85.zip
Auto merge of #10710 - Ms2ger:js, r=nox
Update js. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10710) <!-- Reviewable:end -->
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 d076701a9f5..c7a6f007154 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 = new_rt_and_cx();
+ let runtime = unsafe { new_rt_and_cx() };
unsafe {
JS_SetWrapObjectCallbacks(runtime.rt(),