mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use snake case for the local in get_property_on_prototype.
This commit is contained in:
parent
747b6c4262
commit
ab52927ac5
1 changed files with 4 additions and 4 deletions
|
@ -420,13 +420,13 @@ pub fn get_property_on_prototype(cx: *mut JSContext, proxy: *mut JSObject,
|
|||
*found = false;
|
||||
return true;
|
||||
}
|
||||
let mut hasProp = 0;
|
||||
if JS_HasPropertyById(cx, proto, id, &mut hasProp) == 0 {
|
||||
let mut has_property = 0;
|
||||
if JS_HasPropertyById(cx, proto, id, &mut has_property) == 0 {
|
||||
return false;
|
||||
}
|
||||
*found = hasProp != 0;
|
||||
*found = has_property != 0;
|
||||
let no_output = vp.is_null();
|
||||
if hasProp == 0 || no_output {
|
||||
if has_property == 0 || no_output {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue