保留的 Wasm 命名空间
🌐 Reserved Wasm Namespaces
在导入 WebAssembly 模块实例时,不能使用以保留前缀开头的导入模块名称或导入/导出名称:
🌐 When importing WebAssembly module instances, they cannot use import module names or import/export names that start with reserved prefixes:
wasm-js:- 保留在所有模块导入名称、模块名称和导出名称中。wasm:- 在模块导入名称和导出名称中保留(为了支持未来的内置 polyfill,允许使用导入的模块名称)。
使用上述保留名称导入模块会抛出 WebAssembly.LinkError。
🌐 Importing a module using the above reserved names will throw a
WebAssembly.LinkError.