mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
commit
eb5fbb6ea2
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