This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Adding a simple method like isSupportedType(type) might be easier / more convenient in real usage?
Alternately you could use the fruits of https://www.w3.org/Bugs/Public/show_bug.cgi?id=23682 and use a frozen array. That's option A in the original post there; according to https://www.w3.org/Bugs/Public/show_bug.cgi?id=23682#c7 the resulting syntax is going to be [SameObject] readonly attribute frozen array<StorageType> supportedTypes;
Thanks for the suggestion, I just skimmed through the issue and it looks returning a frozen JS array perfectly makes sense in our case. I'll update the spec to use [SameObject] (and 'frozen' when we have it in IDL) if it gets no objections.
Updating the subject for clarification.
It appears Kinuko fixed this on Github via Issue <https://github.com/kinu/quota-api/issues/3> and commit <https://github.com/kinu/quota-api/issues/3#ref-commit-b1b0c63>. Do you agree Kinuko and Domenic? Kinuko, BTW, now that you are using GH for this spec <>, perhaps this Bugzilla component should be: marked as "Historical", the component no longer accept new bugs and Github Issues be used exclusively for this spec. WDYT? If you agree, I'll work with W3C staff to make this happen.