Skip to content

Commit 9ccf7db

Browse files
committed
pass builtinSetNames, and string constant
1 parent 3e82df4 commit 9ccf7db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

document/js-api/index.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,8 +2310,9 @@ To <dfn export>parse a WebAssembly module</dfn> given a <a>byte sequence</a> |by
23102310
1. Let |stableBytes| be a [=get a copy of the buffer source|copy of the bytes held by the buffer=] |bytes|.
23112311
1. [=Compile a WebAssembly module|Compile the WebAssembly module=] |stableBytes| and store the result as |module|.
23122312
1. If |module| is [=error=], throw a {{CompileError}} exception.
2313-
1. Note: When integrating with the JS String Builtins proposal, |builtinSetNames| should be passed in the following step as « "js-string" » and |importedStringModule| as null.
2314-
1. [=Construct a WebAssembly module object=] from |module| and |bytes|, and let |module| be the result.
2313+
1. Let |builtinSetNames| be « "js-string" ».
2314+
1. Let |importedStringModule| be "wasm-js:strings".
2315+
1. [=Construct a WebAssembly module object=] from |module|, |bytes|, |builtinSetNames| and |importedStringModule|, and let |module| be the result.
23152316
1. Let |requestedModules| be a set.
23162317
1. For each (|moduleName|, |name|, |type|) in [=module_imports=](|module|.\[[Module]]),
23172318
1. If |moduleName| starts with the prefix "wasm-js:",

0 commit comments

Comments
 (0)