[Bug 26303] Add a way to have required dictionary entries


--- Comment #6 from Boris Zbarsky <bzbarsky@mit.edu> ---
We did, but that doesn't work for APIs like webcrypto which want to take
different dictionaries depending on the type of algorithm and some of those
dictionaries want to have some required entries.  You can't even really do that
with overloading, since the behavior depends on the value of a string argument
(the algorithm name).

People clearly shouldn't _abuse_ this functionality to create functions which
just have a single dictionary argument instead of several useful ones, but
there are use cases where doing this makes sense.

Fwiw, https://github.com/heycam/webidl/pull/17

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

Received on Saturday, 23 August 2014 13:18:57 UTC