diff options
author | Michael Wu <mwu@mozilla.com> | 2015-09-23 16:53:03 -0400 |
---|---|---|
committer | Michael Wu <mwu@mozilla.com> | 2015-10-14 15:30:52 -0400 |
commit | e733a7c46a5d14a1be219e76136cdcb2d678d33a (patch) | |
tree | 7a50317a6cfa109eb3a7049add9ad87597dac55e /components/script/lib.rs | |
parent | 32daa17d5cbcad02db0713e21e52410cdc60480e (diff) | |
download | servo-e733a7c46a5d14a1be219e76136cdcb2d678d33a.tar.gz servo-e733a7c46a5d14a1be219e76136cdcb2d678d33a.zip |
Support the updated spidermonkey bindings
Diffstat (limited to 'components/script/lib.rs')
-rw-r--r-- | components/script/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs index 2d900d32099..14d74cb2f94 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -7,6 +7,7 @@ #![feature(borrow_state)] #![feature(box_syntax)] #![feature(cell_extras)] +#![feature(const_fn)] #![feature(core)] #![feature(core_intrinsics)] #![feature(custom_attribute)] @@ -142,7 +143,7 @@ fn perform_platform_specific_initialization() {} #[allow(unsafe_code)] pub fn init() { unsafe { - assert_eq!(js::jsapi::JS_Init(), 1); + assert_eq!(js::jsapi::JS_Init(), true); } // Create the global vtables used by the (generated) DOM |