Re: Return value of getSupportedConstraints (Re: [Bug 26654] WebIDL types needed in Constrainable application)

On 10/13/2014 06:59 PM, Anne van Kesteren wrote:
> On Fri, Oct 10, 2014 at 8:24 PM, Martin Thomson
> <martin.thomson@gmail.com> wrote:
>> It's possible to use a named properties structure here, isn't it?
>> http://www.w3.org/TR/WebIDL/#idl-named-properties
>>
>> interface ConstraintSetSupports {
>>   getter boolean (DOMString constraintName);
>> };
>>
>> With the set of names being defined in text.  This would have the
>> advantage of being extensible.
> Please don't define any new objects with named getters. They are a
> mistake and require JavaScript proxies to be implemented in
> JavaScript. IDL will be updated at some point to name these
> legacygetter and friends.

Having written one of these in Blink, I have trouble interpreting the
sentence.

What does "require JavaScript proxies to be implemented in JavaScript" mean?

>
>


-- 
Surveillance is pervasive. Go Dark.

Received on Monday, 13 October 2014 19:37:19 UTC