Skip to content

Commit cf64b44

Browse files
committed
also reserve wasm schemes on imported names
1 parent bf93c9b commit cf64b44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

document/js-api/index.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,8 @@ To <dfn export>parse a WebAssembly module</dfn> given a <a>byte sequence</a> |by
14061406
1. For each (|moduleName|, |name|, |type|) in [=module_imports=](|module|.\[[Module]]),
14071407
1. If |moduleName| starts with the prefix "wasm-js:",
14081408
1. Throw a {{LinkError}} exception.
1409+
1. If |name| starts with the prefix "wasm:" or "wasm-js:",
1410+
1. Throw a {{LinkError}} exception.
14091411
1. Note: The following step only applies when integrating with the JS String Builtins proposal.
14101412
1. If [=Find a builtin=] with (|moduleName|, |name|, |type|) and builtins |module|.\[[BuiltinSets]] is not null, then [=iteration/continue=].
14111413
1. [=set/Append=] |moduleName| to |requestedModules|.

0 commit comments

Comments
 (0)