Skip to content

Commit

Permalink
Use specific negative assertion for DOM bindings utils
Browse files Browse the repository at this point in the history
  • Loading branch information
CYBAI committed Jan 25, 2018
1 parent 86b876c commit 1f9ce9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/bindings/utils.rs
Expand Up @@ -115,7 +115,7 @@ unsafe impl Sync for DOMJSClass {}
/// Fails if `global` is not a DOM global object.
pub fn get_proto_or_iface_array(global: *mut JSObject) -> *mut ProtoOrIfaceArray {
unsafe {
assert!(((*get_object_class(global)).flags & JSCLASS_DOM_GLOBAL) != 0);
assert_ne!(((*get_object_class(global)).flags & JSCLASS_DOM_GLOBAL), 0);
JS_GetReservedSlot(global, DOM_PROTOTYPE_SLOT).to_private() as *mut ProtoOrIfaceArray
}
}
Expand Down

0 comments on commit 1f9ce9e

Please sign in to comment.