---
title: "WebAssembly JSPI has a new API"
description: "WebAssembly JavaScript Promise Integration (JSPI) ships a revised API in Chrome M126 that drops explicit Suspender objects and instead uses the most recent JS-to-Wasm export call as the suspension cut point."
url: "https://swe.quest/articles/webassembly-jspi-has-a-new-api-8f87900c3d9ad3d8"
canonical: "https://v8.dev/blog/jspi-newapi"
source: "V8"
published: "2024-06-04"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["webassembly","browsers","concurrency","runtimes"]
---

# WebAssembly JSPI has a new API

A post on [V8](https://swe.quest/sources/v8.md), published 2024-06-04, 6 min read, Release. Original: [https://v8.dev/blog/jspi-newapi](https://v8.dev/blog/jspi-newapi)

## Summary

WebAssembly JavaScript Promise Integration (JSPI) ships a revised API in Chrome M126 that drops explicit Suspender objects and instead uses the most recent JS-to-Wasm export call as the suspension cut point. The new API consists of WebAssembly.promising() to wrap exports and a WebAssembly.Suspending constructor to mark imports, removing the dependency on the Type Reflection proposal. Suspending imports now only suspend when the JS function actually returns a Promise, which avoids unnecessary event-loop trips. Emscripten 3.1.61+ users need no code changes, the old API is removed after Chrome M128, and V8 is working on growable (segmented) stacks so that millions of suspended coroutines become feasible.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [WebAssembly](https://swe.quest/tags/webassembly.md) (Languages)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Concurrency](https://swe.quest/tags/concurrency.md) (Compilers & runtimes)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)

## Prerequisites

- WebAssembly basics ([easy posts on WebAssembly](https://swe.quest/tags/webassembly.md?difficulty=easy))
- JavaScript Promises ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Emscripten

## Keywords

JSPI, V8, Chrome M126, Emscripten, WebAssembly.Suspending, WebAssembly.promising, segmented stacks

## Related posts

- [Introducing the WebAssembly JavaScript Promise Integration API](https://swe.quest/articles/introducing-the-webassembly-javascript-promise-integration-api-b17a598677f4452f.md): V8 · 2024-07-01 · Medium · 11 min read · WebAssembly, JavaScript, C & C++, Browsers, Concurrency
  JSPI lets WebAssembly code written against synchronous APIs call asynchronous Web APIs.
- [Bringing Javascript to WebAssembly for Shopify Functions](https://swe.quest/articles/bringing-javascript-to-webassembly-for-shopify-functions-80a81868faf1489b.md): Shopify Engineering · 2023-02-09 · Medium · 16 min read · WebAssembly, JavaScript, Runtimes & VMs, Rust, Serverless
  Shopify runs JavaScript in Shopify Functions by compiling the QuickJS interpreter to WebAssembly/WASI via Javy.
- [What's coming to JavaScript](https://swe.quest/articles/what-s-coming-to-javascript-bea63ec11e3bd18c.md): Deno · 2025-06-26 · Medium · 6 min read · JavaScript, Language design
  TC39's 108th meeting advanced nine JavaScript proposals. Explicit Resource Management (\`using\`/\`await using\` with \`Symbol.dispose\`), \`Array.fromAsync\` and \`Error.isError\` reached stage 4, and Immutable \`ArrayBuffer\` (\`transferToImmutable\`, \`sliceToImmutable\`) reached stage 3.
- [Why is WebAssembly a second-class language on the web?](https://swe.quest/articles/why-is-webassembly-a-second-class-language-on-the-web-36ba94a05082ce89.md): Mozilla Hacks · 2026-02-26 · Medium · 13 min read · WebAssembly, Browsers, Language design, Performance engineering
  WebAssembly remains second-class on the web because it can only load code and reach Web APIs through JavaScript.
- [WebKit Features for Safari 26.6](https://swe.quest/articles/webkit-features-for-safari-26-6-b4f1162f5c2ee9e5.md): WebKit · 2026-07-27 · Medium · 2 min read · Browsers, WebAssembly, CSS
  Safari 26.6 adds a compileOptions parameter to WebAssembly.compileStreaming() and instantiateStreaming(), so Wasm JS String Builtins (shipped in Safari 26.2) can be enabled without giving up streaming compilation.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
