Update js.

This commit is contained in:
Ms2ger 2015-10-28 18:01:57 +01:00
parent 8cc6ce4b86
commit 2a2ab23dfb
5 changed files with 22 additions and 22 deletions

View file

@ -520,7 +520,7 @@ pub fn find_enum_string_index(cx: *mut JSContext,
v: HandleValue,
values: &[&'static str])
-> Result<Option<usize>, ()> {
let jsstr = ToString(cx, v);
let jsstr = unsafe { ToString(cx, v) };
if jsstr.is_null() {
return Err(());
}