diff options
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 8 |
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; } |