W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2018

[webrtc-pc] localDescription, remoteDescription et al. need internal slots

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Mon, 14 May 2018 20:19:02 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-322965498-1526329135-sysbot+gh@w3.org>
jan-ivar has just created a new issue for https://github.com/w3c/webrtc-pc:

== localDescription, remoteDescription et al. need internal slots ==
Both Chrome and Firefox fail a basic test of:
```js
  await pc1.setLocalDescription(await pc1.createOffer());
  console.log(pc1.localDescription == pc1.localDescription); // false; should be true!
```
That's because we're returning a new instance on getting. Instead, we (and the spec) should return the value of an internal slot of type `RTCSessionDescription`.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1871 using your GitHub account
Received on Monday, 14 May 2018 20:19:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:41 UTC