W3C home > Mailing lists > Public > public-html-media@w3.org > July 2015

[encrypted-media] Define the behavior of MediaKeyStatusMap::get(keyId) when |keyId| is not in the map

From: ddorwin via GitHub <sysbot+gh@w3.org>
Date: Tue, 07 Jul 2015 19:46:02 +0000
To: public-html-media@w3.org
Message-ID: <issues.opened-93612780-1436298362-sysbot+gh@w3.org>
ddorwin has just created a new issue for 
https://github.com/w3c/encrypted-media:

== Define the behavior of MediaKeyStatusMap::get(keyId) when |keyId| 
is not in the map ==
The definition of `MediaKeyStatusMap`'s `get(BufferSource keyId)` 
method is currently:
> Returns the MediaKeyStatus of the key identified by keyId.

It does not say what happens or is returned if `keyId` is not in the 
map and thus there is no value for it.

To be consistent with the [ES6 Map interface's 
get()](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-map.prototype.get),
 this method should return `undefined`.

See https://github.com/w3c/encrypted-media/issues/70
Received on Tuesday, 7 July 2015 19:46:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 15:49:03 UTC