mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Stop using ptr.is_not_null() in script.
This method is deprecated in rust master; removing its users in advance will make a future rust upgrade smoother.
This commit is contained in:
parent
111a196e9d
commit
43eecf6e7a
8 changed files with 27 additions and 27 deletions
|
@ -343,7 +343,7 @@ impl FromJSValConvertible<()> for ByteString {
|
|||
impl ToJSValConvertible for Reflector {
|
||||
fn to_jsval(&self, cx: *mut JSContext) -> JSVal {
|
||||
let obj = self.get_jsobject();
|
||||
assert!(obj.is_not_null());
|
||||
assert!(!obj.is_null());
|
||||
let mut value = ObjectValue(unsafe { &*obj });
|
||||
if unsafe { JS_WrapValue(cx, &mut value) } == 0 {
|
||||
panic!("JS_WrapValue failed.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue