W3C home > Mailing lists > Public > public-media-capture@w3.org > April 2014

Re: [Bug 25298] How to represent VideoFacingMode if browser is not able to detect the FacingMode of the camera.

From: Jan-Ivar Bruaroey <jib@mozilla.com>
Date: Mon, 28 Apr 2014 18:13:00 -0400
Message-ID: <535ED26C.3040809@mozilla.com>
To: Harald Alvestrand <harald@alvestrand.no>, public-media-capture@w3.org
On 4/28/14 4:42 PM, Harald Alvestrand wrote:
> I thought you had concluded that an enum inside a dict would not 
> throw? Assignment rule rather than parameter rule?

They throw. See
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25298#c13
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19936#c0

Instances of "dictionaries" in JS are plain JS objects.

Dictionaries don't "live" in JS, they just facilitate the passing of JS 
objects to/from functions.

.: Jan-Ivar :.
Received on Monday, 28 April 2014 22:13:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:26 UTC