Re: [heycam/webidl] [WIP] Define Web IDL Modules (#675)

littledan commented on this pull request.



> +        1.  [=map/Set=] |map|[|name|] to |record|.
+</div>
+
+<div algorithm>
+  To <dfn>set a module attribute</dfn> |attribute| of a module specifier |specifier| in a
+  [=Realm=] |realm| to an ECMAScript value |value|:
+
+    1.  Let |map| be the [=module map=] associated with |realm|'s [=relevant
+        settings object=].
+    1.  Assert: |map|[|specifier|] exists.
+    1.  Let |moduleRecord| be |map|[|specifier|].
+    1.  Assert: |moduleRecord|.\[[ExportNames]] [=list/contains=] |attribute|.
+    1.  Perform ! [=SetSyntheticModuleExport=](|moduleRecord|, |attribute|,
+        |value|).
+</div>
+

Done

-- 
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/675#discussion_r262019216

Received on Monday, 4 March 2019 11:22:56 UTC