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

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