From 8ca8cd0f2db449db2ff82d3fc4ca25dc8e53349b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Wed, 27 Mar 2024 12:14:35 +0100 Subject: [PATCH] Make RTCIceCandidatePair members required In webrtc-pc this dictionary is only used as a return type of getSelectedCandidatePair(), which will include both local and remote. This is not a problem. In https://w3c.github.io/webrtc-extensions/#rtcicetransport the dictionary is used as a non-optional argument, and Web IDL requires that dictionary arguments are optional if there are no required members. Fix this by making them required. --- webrtc.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc.html b/webrtc.html index 5b4b11ea2..da9ff24ae 100644 --- a/webrtc.html +++ b/webrtc.html @@ -12559,8 +12559,8 @@

dictionary RTCIceCandidatePair {
-  RTCIceCandidate local;
-  RTCIceCandidate remote;
+  required RTCIceCandidate local;
+  required RTCIceCandidate remote;
 };