aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-07-02 22:17:41 +0200
committerMs2ger <ms2ger@gmail.com>2015-07-02 22:17:41 +0200
commit24f61220737255f3d086ca2c0cf59bf61cf91df3 (patch)
treebcace5ae1b4f11c6448d427abbd7539f66627501 /components/script
parentbe9d60664d26e979489fe891b7b11468bb89ba2a (diff)
downloadservo-24f61220737255f3d086ca2c0cf59bf61cf91df3.tar.gz
servo-24f61220737255f3d086ca2c0cf59bf61cf91df3.zip
Check the result of JS_Init.
Diffstat (limited to 'components/script')
-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);
}
}