diff options
Diffstat (limited to 'components/script/dom/promise.rs')
-rw-r--r-- | components/script/dom/promise.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/promise.rs b/components/script/dom/promise.rs index df9838ed5cc..20485618c18 100644 --- a/components/script/dom/promise.rs +++ b/components/script/dom/promise.rs @@ -72,7 +72,7 @@ impl Promise { #[allow(unsafe_code)] pub fn new(global: &GlobalScope) -> Rc<Promise> { let cx = global.get_cx(); - rooted!(in(cx) let mut obj = ptr::null_mut()); + rooted!(in(cx) let mut obj = ptr::null_mut::<JSObject>()); unsafe { Promise::create_js_promise(cx, HandleObject::null(), obj.handle_mut()); Promise::new_with_js_promise(obj.handle(), cx) |