Use snake case for the local in get_property_on_prototype.

This commit is contained in:
Ms2ger 2015-01-29 19:04:26 +01:00
parent 747b6c4262
commit ab52927ac5

View file

@ -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;
}