保留的 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-js: - reserved in all module import names, module names and export names.

  • wasm: - 在模块导入名称和导出名称中保留(允许导入模块名称以支持未来的内置 polyfill)。

    ¥wasm: - reserved in module import names and export names (imported module names are allowed in order to support future builtin polyfills).

使用上述保留名称导入模块将抛出 WebAssembly.LinkError 异常。

¥Importing a module using the above reserved names will throw a WebAssembly.LinkError.