Re: [webrtc-pc] Missing url in RTCIceCandidateInit (#2795)

A shim cannot modify the internal slot. IIRC, the following points have been expressed during the call:
1. A getter is nothing but a function that can be retrieved from the prototype. It can be called directly and if so would return a the internal slot value which can be different from the shimed value. This can potentially end up into strange edge cases.
2. Setting the actual internal slot would be handy, at least for testing. The shim is not useful if we want to write a WPT test with a candidate that has a `url` value and we want to check that calling toJSON on this candidate is not exposing `url`.

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2795#issuecomment-1404704280 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 26 January 2023 08:50:23 UTC