Check the result of JS_Init.

This commit is contained in:
Ms2ger 2015-07-02 22:17:41 +02:00
parent be9d60664d
commit 24f6122073

View file

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