[Bug 23332] Support Binary Keys

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23332

--- Comment #4 from Joshua Bell <jsbell@google.com> ---
(In reply to Jonas Sicking from comment #3)
> I think it would be confusing to accept a Float64Array, but then not sort
> according to float values.

That's exactly why I tossed the straw-man up. :) It felt a little odd when I
was prototyping it.

> Why not restrict to ArrayBuffers and Uint8Array?
> 
> Though it also feels strange to accept one type and then return another, so
> maybe limit to Uint8Array?

I'd be fine with that restriction.

I think for the TextDecoder API we accept any type with the semantics I
described (i.e. just consider the input type a byte buffer view, ignore the
actual type), and ISTR there was discussion about moving away from consuming
raw ArrayBuffers. We should probably evolve some consistency here.

I'll restrict our prototype to Uint8Array since it's easy to relax that later.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 23 September 2013 22:51:36 UTC