mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Check the result of JS_Init.
This commit is contained in:
parent
be9d60664d
commit
24f6122073
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue