Re: Convert MediaKeyStatusMap to iterable<BufferSource,MediaKeyStatus> (issue 1237343004 by jrummell@chromium.org)
1 view
Skip to first unread message
jrum...@chromium.org
unread,
Jun 6, 2016, 3:17:03 PM6/6/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ddorwin+...@chromium.org, sand...@chromium.org, blink-...@chromium.org, mlamouri+w...@chromium.org, feature-me...@chromium.org, phili...@opera.com, eric.c...@apple.com
Updated to bring up-to-date, and get it working with the current idl. However, get() for a keyId that doesn't exist returns null rather than undefined, so continuing work to see if the spec or this code should change.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ddorwin+...@chromium.org, sand...@chromium.org, har...@chromium.org, blink-...@chromium.org, mlamouri+w...@chromium.org, feature-me...@chromium.org, phili...@opera.com, eric.c...@apple.com
Updated to return undefined if get() doesn't find a matching entry. This requires a custom CallEpilogue on get(), so adding haraken@ for comments and OWNERS review of the v8 custom code.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jrum...@chromium.org, ddorwin+...@chromium.org, sand...@chromium.org, blink-...@chromium.org, mlamouri+w...@chromium.org, feature-me...@chromium.org, phili...@opera.com, eric.c...@apple.com
On 2016/06/08 23:23:21, jrummell wrote: > Updated to return undefined if get() doesn't find a matching entry. This > requires a custom CallEpilogue on get(), so adding haraken@ for comments and > OWNERS review of the v8 custom code.
In terms of implementation, looks good.
But I believe this is a spec bug. Ideally we should fix the spec so that we don't need to land this CL...
On 2016/06/14 20:56:05, ddorwin wrote: > It would be nice to have separate tests that check for key IDs that are close > but not present. For example, first/last byte different, one byte shorter (on > each end), and one byte longer (on each end). > > This can be a separate CL.
On 2016/06/14 22:24:21, jrummell wrote: > On 2016/06/14 20:56:05, ddorwin wrote: > > Is this not readonly like the maplike was? The spec doesn't have this, but > maybe > > it should. > > According to https://heycam.github.io/webidl/#idl-iterable, readonly is not > allowed with iterable<>. And none of the existing IDL files specify readonly > with iterable<>.