aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-01-29 19:04:26 +0100
committerMs2ger <ms2ger@gmail.com>2015-01-29 19:04:26 +0100
commitab52927ac5407e3a9057a03e2207c2dfb10ff572 (patch)
tree6a0e43869fd1859f24a52af6efd44c27524c2d58 /components/script/dom/bindings
parent747b6c4262ad93f1eb521d06693b4ea8878e20ef (diff)
downloadservo-ab52927ac5407e3a9057a03e2207c2dfb10ff572.tar.gz
servo-ab52927ac5407e3a9057a03e2207c2dfb10ff572.zip
Use snake case for the local in get_property_on_prototype.
Diffstat (limited to 'components/script/dom/bindings')
-rw-r--r--components/script/dom/bindings/utils.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs
index 674c38cbc53..37e150b5fc2 100644
--- a/components/script/dom/bindings/utils.rs
+++ b/components/script/dom/bindings/utils.rs
@@ -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;
}