保留的 Wasm 命名空间


🌐 Reserved Wasm Namespaces

通过 ESM 集成导入 WebAssembly 模块时,不能使用以保留前缀开头的模块名称或导入/导出名称:

🌐 When importing WebAssembly modules through the ESM Integration, they cannot use import module names or import/export names that start with reserved prefixes:

  • wasm-js: - 在所有模块导入名称、模块名称和导出名称中被保留。
  • wasm: - 在模块导入名称和导出名称中保留(为了支持未来内置填充,允许使用导入的模块名称)。

使用上述保留名称导入模块会抛出 WebAssembly.LinkError

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