aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-07-02 08:20:03 -0600
committerbors-servo <metajack+bors@gmail.com>2015-07-02 08:20:03 -0600
commiteb5fbb6ea26c68fb875da51d57b1c85eeffae43b (patch)
treebcace5ae1b4f11c6448d427abbd7539f66627501
parentbe9d60664d26e979489fe891b7b11468bb89ba2a (diff)
parent24f61220737255f3d086ca2c0cf59bf61cf91df3 (diff)
downloadservo-eb5fbb6ea26c68fb875da51d57b1c85eeffae43b.tar.gz
servo-eb5fbb6ea26c68fb875da51d57b1c85eeffae43b.zip
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 -->
-rw-r--r--components/script/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs
index 144644438e5..642efd54650 100644
--- a/components/script/lib.rs
+++ b/components/script/lib.rs
@@ -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);
}
}