Remove spurious JS_Init call.

Runtime::new() will call JS_Init a second time, leading to an assertion.
This commit is contained in:
Ms2ger 2016-06-02 10:02:19 +02:00
parent cc7953e25e
commit 1da1b62128

View file

@ -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));
}