W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2017

Re: [webrtc-pc] Use [SameObject] for the FrozenArray<T> attributes that never change

From: henbos via GitHub <sysbot+gh@w3.org>
Date: Mon, 24 Apr 2017 12:34:16 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-296650011-1493037255-sysbot+gh@w3.org>
Hang on, if dictionaries are always returned "by value", meaning they are copied, and the elements of FrozenArray\<T\> are mutable (its the references that are immutable of FrozenArray), then "SameObject" would be dangerous. To ensure dictionary are copied we need to return new FrozenArrays every time.

`certificate.fingerprints[0].foo = "bar"` should be possible if I understand WebIDL correctly, but that should not mess up future `certificate.fingerprints[0]` readings.

GitHub Notification of comment by henbos
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1138#issuecomment-296650011 using your GitHub account
Received on Monday, 24 April 2017 12:34:22 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:40 UTC