diff --git a/dom/webidl/TelephonyCall.webidl b/dom/webidl/TelephonyCall.webidl index b09464766363..1bfc2c2b901f 100644 --- a/dom/webidl/TelephonyCall.webidl +++ b/dom/webidl/TelephonyCall.webidl @@ -33,14 +33,14 @@ interface TelephonyCall : EventTarget { readonly attribute TelephonyCallGroup? group; - [Throws] - void answer(); - [Throws] - void hangUp(); - [Throws] - void hold(); - [Throws] - void resume(); + [NewObject, Throws] + Promise answer(); + [NewObject, Throws] + Promise hangUp(); + [NewObject, Throws] + Promise hold(); + [NewObject, Throws] + Promise resume(); attribute EventHandler onstatechange; attribute EventHandler ondialing;