From 1da1b62128251c23bafd3eb8682986c9c0f3e796 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 2 Jun 2016 10:02:19 +0200 Subject: [PATCH] Remove spurious JS_Init call. Runtime::new() will call JS_Init a second time, leading to an assertion. --- components/script/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/components/script/lib.rs b/components/script/lib.rs index 77ff99aab97..e5967d19ddd 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -158,7 +158,6 @@ fn perform_platform_specific_initialization() {} #[allow(unsafe_code)] pub fn init() { unsafe { - assert_eq!(js::jsapi::JS_Init(), true); SetDOMProxyInformation(ptr::null(), 0, Some(script_thread::shadow_check_callback)); }