Skip to content

Commit 70a3869

Browse files
committed
[js-api] Remove copy-pasted if statements
1 parent 753b7a1 commit 70a3869

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

document/js-api/index.bs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,6 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
434434
To <dfn>instantiate imported strings</dfn> with module |module| and |importedStringModule|, perform the following steps:
435435
1. Assert: |importedStringModule| is not null.
436436
1. Let |exportsObject| be [=!=] [$OrdinaryObjectCreate$](null).
437-
1. If |externtype| is of the form [=external-type/func=] <var ignore>functype</var>,
438437
1. [=list/iterate|For each=] (|moduleName|, |componentName|, |externtype|) of [=module_imports=](|module|),
439438
1. If |moduleName| does not equal |importedStringModule|, then [=iteration/continue=].
440439
1. Let |stringConstant| be |componentName|.
@@ -1797,7 +1796,6 @@ To <dfn>instantiate a builtin set</dfn> with name |builtinSetName|, perform the
17971796

17981797
1. Let |builtins| be the result of [=get the builtins for a builtin set=] |builtinSetName|
17991798
1. Let |exportsObject| be [=!=] [$OrdinaryObjectCreate$](null).
1800-
1. If |externtype| is of the form [=external-type/func=] <var ignore>functype</var>,
18011799
1. [=list/iterate|For each=] (|name|, |funcType|, |steps|) of |builtins|,
18021800
1. Let |funcaddr| be the result fo [=create a builtin function=] with |funcType| and |steps|
18031801
1. Let |func| be the result of creating [=a new Exported Function=] from |funcaddr|.

0 commit comments

Comments
 (0)