W3C home > Mailing lists > Public > public-media-capture@w3.org > August 2013

Dictionaries as return values

From: Tommy Widenflycht <tommyw@google.com>
Date: Tue, 20 Aug 2013 16:06:25 +0200
Message-ID: <CALLKCfNTAquBTxu2WZA=+D18XACSD+X3KfJaJuN2WxM7jCkF1g@mail.gmail.com>
To: "public-media-capture@w3.org" <public-media-capture@w3.org>
The MediaStreamTrack interface have added a significant usage of
Dictionaries as output values; even Dictionaries inside Dictionaries inside
a return value Dictionary.

I have tried to parse the WebIDL spec and can find no evidence that this is
allowed by looking at the grammar. The text seems to indicate that it is
possible however. Historically (or when I looked at the WebIDL spec closely
last time) it explicitly stated that Dictionaries were only for arguments
but that text has disappeared.

Can someone clarify the situation and if Dictionaries can now indeed be
used for return values a pointer as to where this is documented?

/Tommy
Received on Tuesday, 20 August 2013 14:06:52 UTC

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