You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: document/js-api/index.bs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2310,8 +2310,9 @@ To <dfn export>parse a WebAssembly module</dfn> given a <a>byte sequence</a> |by
2310
2310
1. Let |stableBytes| be a [=get a copy of the buffer source|copy of the bytes held by the buffer=] |bytes|.
2311
2311
1. [=Compile a WebAssembly module|Compile the WebAssembly module=] |stableBytes| and store the result as |module|.
2312
2312
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.
2315
2316
1. Let |requestedModules| be a set.
2316
2317
1. For each (|moduleName|, |name|, |type|) in [=module_imports=](|module|.\[[Module]]),
2317
2318
1. If |moduleName| starts with the prefix "wasm-js:",
@@ -2409,7 +2410,6 @@ WebAssembly Module Records have the following methods:
2409
2410
1. Let |module| be |record|.\[[ModuleSource]].\[[Module]].
2410
2411
1. Let |imports| be « ».
2411
2412
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.
2413
2413
1. If [=Find a builtin=] with (|importedModuleName|, |name|) and builtins |module|.\[[BuiltinSets]] is not null, then [=iteration/continue=].
2414
2414
1. Let |importedModule| be [$GetImportedModule$](|record|, |importedModuleName|).
2415
2415
1. Let |resolution| be |importedModule|.ResolveExport(|name|).
0 commit comments