Accroding to WebIDL definition, directories are asociative array data type with a fixed, ordered set of key–value pairs (https://www.w3.org/TR/WebIDL/#idl-dictionaries). The don't have a constructor, so in javascript a normal object mus be used when creating a dictionary.
But in several examples, for example, the RTCIceGatherOptions is created via a constructor (which is wrong).
Correct, this needs to be fixed. Dictionaries are basically associative arrays and do not have constructors. Other languages without associative arrays like JS would be have more "fixed" definitions and possibly constructors, but not JS
murillo128 commentedApr 13, 2016
Accroding to WebIDL definition, directories are asociative array data type with a fixed, ordered set of key–value pairs (https://www.w3.org/TR/WebIDL/#idl-dictionaries). The don't have a constructor, so in javascript a normal object mus be used when creating a dictionary.
But in several examples, for example, the RTCIceGatherOptions is created via a constructor (which is wrong).
It sould be
or even better:
The text was updated successfully, but these errors were encountered: