Skip to content

Commit df1f6df

Browse files
guybedfordeqrion
authored andcommitted
spec rework
1 parent 6cbeb82 commit df1f6df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

document/js-api/index.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,10 @@ To <dfn>instantiate imported strings</dfn> with module |module| and |importedStr
459459
1. [=map/set|Set=] |builtinOrStringImports|[|importedStringModule|] to |exportsObject|
460460
1. Let |imports| be « ».
461461
1. [=list/iterate|For each=] (|moduleName|, |componentName|, |externtype|) of [=module_imports=](|module|),
462-
1. If |builtinOrStringImports| [=map/exist|contains=] |moduleName| and |builtinOrStringImports|[|moduleName|] [=map/exist|contains=] |componentName|,
463-
1. Let |o| be |builtinOrStringImports|[|moduleName|]
462+
1. If |builtinOrStringImports| [=map/exist|contains=] |moduleName|,
463+
1. Let |o| be |builtinOrStringImports|[|moduleName|].
464+
1. If |o| [=is not an Object=] of if |o| [=map/exist|does not contain=] |componentName|,
465+
1. Set |o| to [=?=] [$Get$](|importObject|, |moduleName|).
464466
1. Else,
465467
1. Let |o| be [=?=] [$Get$](|importObject|, |moduleName|).
466468
1. If |o| [=is not an Object=], throw a {{TypeError}} exception.

0 commit comments

Comments
 (0)