Re: [Bug 23933] Proposal: Change constraints to use WebIDL dictionaries

On 12/6/13 1:10 AM, cowwoc wrote:
> On 06/12/2013 12:07 AM, Jan-Ivar Bruaroey wrote:
>> I want to clarify that my proposal does not mandate ignoring 
>> mandatory constraints, it only allows it. The web developer decides 
>> whether to fail always (which is basically the default now) or not.
>
> How would I tell the browser to throw an error on unknown constraints 
> if your proposal was implemented?

if (!getGumKnownConstraints().hasOwnProperty("3D")) { throw new Error(); }

.: Jan-Ivar :.

Received on Friday, 6 December 2013 08:06:59 UTC