diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-02 10:02:19 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-02 10:02:19 +0200 |
commit | 1da1b62128251c23bafd3eb8682986c9c0f3e796 (patch) | |
tree | 00b7eccd0a5c95effac48efaa4dc6488fc7f1280 /components/script/lib.rs | |
parent | cc7953e25eaf6221a0e6e31af43214d0807185eb (diff) | |
download | servo-1da1b62128251c23bafd3eb8682986c9c0f3e796.tar.gz servo-1da1b62128251c23bafd3eb8682986c9c0f3e796.zip |
Remove spurious JS_Init call.
Runtime::new() will call JS_Init a second time, leading to an assertion.
Diffstat (limited to 'components/script/lib.rs')
-rw-r--r-- | components/script/lib.rs | 1 |
1 files changed, 0 insertions, 1 deletions
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)); } |