JSPI 让 Wasm 异步挂起等待外部 Promise
面向 Wasm 的 JavaScript Promise Integration 允许 WebAssembly 异步“挂起”,等待外部 promise 的结果。这简化了 C/C++ 这类期望 API 同步运行的语言的编译工作。
English original
JavaScript Promise Integration for Wasm allows WebAssembly to asynchronously 'suspend', waiting on the result of an external promise. This simplifies the compilation of languages like C/C++ which expect APIs to run synchronously.
在关于 Interop 2026 的链接博客文章中
西蒙·威利森Independent · 开发者与作者