[Bug 25388] Boolean arguments

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

--- Comment #3 from Anne <annevk@annevk.nl> ---
I would not suggest to nest objects, that does indeed seem bad. Can it be a
keyUsages parameter with values as per Mark's suggestion?

The main problem is that if you look at a call such as

window.crypto.subtle.deriveKey({ alg }, key, { derived alg }, false, [
"encrypt" ]);

it is not clear what is going on. The same with the last argument being a
length of sorts. 

I would need a much better understanding of the problem space to give more
informed feedback as to what a better API would be. :-(

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

Received on Tuesday, 29 April 2014 10:12:50 UTC