Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define the behavior of MediaKeyStatusMap::get(keyId) when |keyId| is not in the map #70

Closed
ddorwin opened this issue Jul 7, 2015 · 1 comment

Comments

@ddorwin
Copy link
Contributor

ddorwin commented Jul 7, 2015

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(), this method should return undefined.

@mwatson2
Copy link
Contributor

mwatson2 commented Feb 2, 2016

I assume the method should return undefined in the same circumstances as the has method returns false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants