@@ -433,6 +433,7 @@ To <dfn>instantiate imported strings</dfn> with module |module| and |importedStr
433
433
1. Let |builtinOrStringImports| be the ordered map « ».
434
434
1. [=list/iterate|For each=] |builtinSetName| of |builtinSetNames|,
435
435
1. Assert: |builtinOrStringImports| does not contain |builtinSetName|
436
+ 1. If |builtinSetName| does not refer to a builtin set, then [=iteration/continue=] .
436
437
1. Let |exportsObject| be the result of [=instantiate a builtin set=] with |builtinSetName|
437
438
1. Let |builtinSetQualifiedName| be |builtinSetName| prefixed with "wasm:"
438
439
1. [=map/set|Set=] |builtinOrStringImports|[|builtinSetQualifiedName|] to |exportsObject|
@@ -1742,6 +1743,7 @@ To <dfn>find a builtin</dfn> with |import| and enabled builtins |builtinSetNames
1742
1743
1. Let |importModuleName| be |import|[0]
1743
1744
1. Let |importName| be |import|[1]
1744
1745
1. [=list/iterate|For each=] |builtinSetName| of |builtinSetNames|,
1746
+ 1. If |builtinSetName| does not refer to a builtin set, then [=iteration/continue=] .
1745
1747
1. Let |builtinSetQualifiedName| be |builtinSetName| prefixed with "wasm:"
1746
1748
1. If |importModuleName| equals |builtinSetQualifiedName|
1747
1749
1. Let |builtins| be the result of [=get the builtins for a builtin set=] |builtinSetName|
@@ -1756,8 +1758,6 @@ To <dfn>find a builtin</dfn> with |import| and enabled builtins |builtinSetNames
1756
1758
To <dfn>validate builtin set names</dfn> with |builtinSetNames|, perform the following steps:
1757
1759
1758
1760
1. If |builtinSetNames| contains any duplicates, return false.
1759
- 1. [=list/iterate|For each=] |builtinSetName| of |builtinSetNames|,
1760
- 1. If |builtinSetName| does not equal the name of one of the builtin sets defined in this section, return false.
1761
1761
1. Return false.
1762
1762
1763
1763
</div>
0 commit comments