Auto merge of #11553 - Ms2ger:init, r=nox

Remove spurious JS_Init call.

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] We don't run debug-mozjs tests

Runtime::new() will call JS_Init a second time, leading to an assertion.

<!-- 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/11553)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-06-02 04:36:56 -05:00
commit d191a47547

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