mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename GetArrayIndexFromId to get_array_index_from_id.
This commit is contained in:
parent
ab52927ac5
commit
a0f5250cb8
3 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue