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

domenic commented on this pull request.



> +                1.  Assert: |member| is an [=attribute=].
+                1.  Assert: The module evaluation steps will set each attribute.
+        1.  Run the [=module evaluation steps=] for the [=module/specifier=] of
+            |module|, if any are present.
+    1.  Return |moduleRecord|.
+</div>
+
+<div algorithm>
+  To <dfn>initialize the module map</dfn> of a [=Realm=] |realm|:
+
+    1.  Let |map| be the [=module map=] associated with |realm|'s [=relevant settings object=].
+    1.  For every [=module=] |module| that is [=exposed=] in |realm|,
+        1.  Let |name| be the [=module/specifier=] of |module|.
+        1.  Let |record| be the result of [=create a synthetic module record=]
+            for |module| in |realm|.
+        1.  [=map/Set=] |map|[|name|] to |record|.

https://github.com/WICG/import-maps/tree/master/reference-implementation/lib has been working off the assumption that the module map keys would be `import:x` for built-in modules with specifier `x`. https://github.com/WICG/import-maps/blob/master/reference-implementation/lib/parser.js#L110

-- 
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_r264047624

Received on Sunday, 10 March 2019 16:43:31 UTC