Skip to content

Commit fb197ea

Browse files
JSPI support in WebAssembly (#3791)
* JSPI feature * dist and spec exception * Apply suggestion from @captainbrosset
1 parent 360ed81 commit fb197ea

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

features/wasm-jspi.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: JavaScript promise integration (WebAssembly)
2+
description: The JavaScript promise integration (JSPI) suspends a WebAssembly module when the it calls a JavaScript method which returns a promise. The module is resumed when the promise is resolved. You can use this to call asynchronous Web APIs from synchronous WebAssembly.
3+
spec: https://github.com/WebAssembly/js-promise-integration/blob/main/proposals/js-promise-integration/Overview.md
4+
group: webassembly
5+
compat_features:
6+
- webassembly.jspi

features/wasm-jspi.yml.dist

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Generated from: wasm-jspi.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "137"
8+
edge: "137"
9+
compat_features:
10+
- webassembly.jspi

scripts/specs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ const defaultAllowlist: allowlistItem[] = [
104104
"https://github.com/WebAssembly/exception-handling/blob/main/proposals/exception-handling/legacy/Exceptions.md",
105105
"Allowed because there is no other specification to link to."
106106
],
107+
[
108+
"https://github.com/WebAssembly/js-promise-integration/blob/main/proposals/js-promise-integration/Overview.md",
109+
"Allowed because there is no other specification to link to."
110+
],
107111
[
108112
"https://immersive-web.github.io/webvr/spec/1.1/",
109113
"Allowed because this is the legacy spec that defines WebVR."

0 commit comments

Comments
 (0)