Auto merge of #6533 - Ms2ger:init, r=jdm

Check the result of JS_Init.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6533)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-07-02 08:20:03 -06:00
commit eb5fbb6ea2

View file

@ -90,6 +90,6 @@ mod webdriver_handlers;
#[allow(unsafe_code)] #[allow(unsafe_code)]
pub fn init() { pub fn init() {
unsafe { unsafe {
js::jsapi::JS_Init(); assert_eq!(js::jsapi::JS_Init(), 1);
} }
} }