diff options
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 2a23281c8fe..4a6d19f972a 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -134,7 +134,7 @@ pub unsafe fn get_property_on_prototype(cx: *mut JSContext, found: *mut bool, vp: MutableHandleValue) -> bool { - rooted!(in(cx) let mut proto = ptr::null_mut()); + rooted!(in(cx) let mut proto = ptr::null_mut::<JSObject>()); if !JS_GetPrototype(cx, proxy, proto.handle_mut()) || proto.is_null() { *found = false; return true; @@ -287,7 +287,7 @@ pub unsafe fn has_property_on_prototype(cx: *mut JSContext, id: HandleId, found: &mut bool) -> bool { - rooted!(in(cx) let mut proto = ptr::null_mut()); + rooted!(in(cx) let mut proto = ptr::null_mut::<JSObject>()); if !JS_GetPrototype(cx, proxy, proto.handle_mut()) { return false; } |