- From: Jeffrey Yasskin <notifications@github.com>
- Date: Fri, 14 Oct 2016 13:31:47 -0700
- To: heycam/webidl <webidl@noreply.github.com>
Received on Friday, 14 October 2016 20:32:45 UTC
jyasskin commented on this pull request.
> +</p>
+
+<ol class="algorithm">
+ 1. Let |result| be [=!=] [=ObjectCreate=]([=%ObjectPrototype%=]).
+ 1. Repeat, for each [=record/mapping=] (|key|, |value|) in |D|:
+ 1. Let |esKey| be |key| [=converted to an ECMAScript value=].
+ 1. Let |esValue| be |value| [=converted to an ECMAScript value=].
+ 1. Let |created| be [=!=] [=CreateDataProperty=](|result|, |esKey|, |esValue|).
+ 1. Assert: |created| is <emu-val>true</emu-val>.
+ 1. Return |result|.
+</ol>
+
+<div class="example" id="example-es-record">
+ Passing the ECMAScript value <code>{b: 3, a: 4}</code> to a
+ <code>{{record}}<DOMString, double></code> argument
+ would result in the IDL value <code>[ ("b", 3), ("a", 4) ]</code>.
Perfect, thanks!
--
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, 14 October 2016 20:32:45 UTC