aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/lib.rs')
-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);
}
}