- From: Domenic Denicola <notifications@github.com>
- Date: Sat, 01 Oct 2016 08:35:49 -0700
- To: heycam/webidl <webidl@noreply.github.com>
Received on Saturday, 1 October 2016 15:36:19 UTC
domenic commented on this pull request. > @@ -7529,6 +7575,95 @@ iterable |iterable| and an iterator getter </div> +<h4 id="es-open-dictionary">Open dictionaries — OpenDictionary<[|K|,] |V|></h4> + +IDL {{OpenDictionary}}<|K|, |V|> values are represented by +ECMAScript <emu-val>Object</emu-val> values. + +<p id="es-to-open-dictionary"> + An ECMAScript value |O| is [=converted to an IDL value|converted=] to an IDL <code>{{OpenDictionary}}<|K|, |V|></code> value as follows: +</p> + +<ol class="algorithm"> + 1. Let |result| be a new empty instance of <code>{{OpenDictionary}}<|K|, |V|></code>. + 1. If [=Type=](|O|) is <emu-val>Undefined</emu-val> or <emu-val>Null</emu-val>, + return |result|. Uh, what are you reading? Can you quote? I see there a very clear step 1 that says "If Type(V) is not Undefined, Null or Object, then throw a TypeError." -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/pull/180
Received on Saturday, 1 October 2016 15:36:19 UTC