- From: Jeffrey Yasskin <notifications@github.com>
- Date: Fri, 30 Sep 2016 00:55:51 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Message-ID: <heycam/webidl/pull/180/review/2282724@github.com>
jyasskin commented on this pull request.
> @@ -7529,6 +7564,82 @@ iterable |iterable| and an iterator getter
</div>
+<h4 id="es-open-dictionary">Open dictionaries — dictionary<[|K|,] |V|></h4>
+
+IDL {{dictionary}}<|K|, |V|> values are represented by
+ECMAScript <emu-val>Object</emu-val> values.
+
+<div algorithm="convert object to open dictionary" id="es-to-open-dictionary">
+ An ECMAScript value |O| is [=converted to an IDL value|converted=] to an IDL <code>{{dictionary}}<|K|, |V|></code> value as follows:
+
+ 1. If [=Type=](|O|) is not <emu-val>Object</emu-val>,
+ <a lt="es throw">throw a <emu-val>TypeError</emu-val></a>.
+ 1. Let |result| be a new empty instance of <code>{{dictionary}}<|K|, |V|></code>.
+ 1. Let |entries| be [=EnumerableOwnProperties=](|O|, "key+value").
Oh, right, StructuredClone does interleave getting with possible exceptions from the recursive StructuredClone call.
--
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 Friday, 30 September 2016 07:56:25 UTC