[Bug 26458] Are all the API methods really returning Promise<any>, or can the return value be specified more precisely?

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

--- Comment #5 from Ryan Sleevi <sleevi@google.com> ---
(In reply to Boris Zbarsky from comment #4)
> OK.  So what about encrypt()?  Are there cases when it's not an ArrayBuffer?

There was the debate about whether Encrypt should return a single ciphertext,
or ciphertext+tag for AAD. Ditto for input.

Rather than going piecemeal through these, a more useful exercise might be to
compile a table. My gut reaction is negative, but part of that may be change
aversion, and part of that is knowing that the moment we restrict the API to
some single return type, someone will inevitably show up with a use case that
doesn't fit in cleanly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 29 July 2014 20:53:15 UTC