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

[webrtc-pc] Pull Request: FrozenArray, sequence and SameObject

From: henbos via GitHub <sysbot+gh@w3.org>
Date: Tue, 25 Apr 2017 09:29:02 +0000
To: public-webrtc-logs@w3.org
Message-ID: <pull_request.opened-117440270-1493112540-sysbot+gh@w3.org>
henbos has just submitted a new pull request for https://github.com/w3c/webrtc-pc:

== FrozenArray, sequence and SameObject ==
Because dictionaries are returned by copy, returning FrozenArray\<DictionaryType\> must return a new array of new objects every time, and the dictionaries are mutable. In this case it makes more sense to use a getter method returning sequence\<DictionaryType\> than FrozenArray-attributes.

The one use of FrozenArray\<T\> where T is an interface gets [SameObject].

Fixes #1138.

See https://github.com/w3c/webrtc-pc/pull/1145
Received on Tuesday, 25 April 2017 09:29:08 UTC

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