Rename GetArrayIndexFromId to get_array_index_from_id.

This commit is contained in:
Ms2ger 2015-01-29 19:06:38 +01:00
parent ab52927ac5
commit a0f5250cb8
3 changed files with 11 additions and 11 deletions

View file

@ -436,7 +436,7 @@ pub fn get_property_on_prototype(cx: *mut JSContext, proxy: *mut JSObject,
/// Get an array index from the given `jsid`. Returns `None` if the given
/// `jsid` is not an integer.
pub fn GetArrayIndexFromId(_cx: *mut JSContext, id: jsid) -> Option<u32> {
pub fn get_array_index_from_id(_cx: *mut JSContext, id: jsid) -> Option<u32> {
unsafe {
if RUST_JSID_IS_INT(id) != 0 {
return Some(RUST_JSID_TO_INT(id) as u32);