From 24f61220737255f3d086ca2c0cf59bf61cf91df3 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 2 Jul 2015 22:17:41 +0200 Subject: Check the result of JS_Init. --- components/script/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/lib.rs') 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); } } -- cgit v1.2.3