W3C home > Mailing lists > Public > public-webrtc@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@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:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:50 UTC