Skip to content

Commit 0709449

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

document/js-api/index.bs

Lines changed: 3 additions & 3 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:",
@@ -2409,7 +2410,6 @@ WebAssembly Module Records have the following methods:
24092410
1. Let |module| be |record|.\[[ModuleSource]].\[[Module]].
24102411
1. Let |imports| be « ».
24112412
1. [=list/iterate|For each=] (|importedModuleName|, |name|, |importtype|) in [=module_imports=](|module|),
2412-
1. Note: The following step only applies when integrating with the JS String Builtins proposal.
24132413
1. If [=Find a builtin=] with (|importedModuleName|, |name|) and builtins |module|.\[[BuiltinSets]] is not null, then [=iteration/continue=].
24142414
1. Let |importedModule| be [$GetImportedModule$](|record|, |importedModuleName|).
24152415
1. Let |resolution| be |importedModule|.ResolveExport(|name|).

0 commit comments

Comments
 (0)