Skip to content

Use Asyncify.makeAsyncFunction for promising dynCalls. NFC - #28341

Merged
sbc100 merged 1 commit into
mainfrom
gbedford/jspi-make-async-function
Nov 20, 2026
Merged

sbc100 merged 1 commit into
mainfrom
gbedford/jspi-make-async-function

Conversation

@guybedford

@guybedford guybedford commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

This routes the promising dynCall paths through Asyncify.makeAsyncFunction rather than calling WebAssembly.promising directly on the table entry. Split out from #28323.

Made with AI assistance under my review

The three promising dynCall paths called WebAssembly.promising directly
on the table entry, bypassing the single place where JSPI entry
functions are created.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces occurrences of WebAssembly.promising with Asyncify.makeAsyncFunction in src/lib/libcore.js, src/lib/libembind.js, and src/parseTools.mjs when JSPI or promising options are enabled. I have no feedback to provide as there are no review comments to evaluate.

@sbc100

sbc100 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

The PR description I think could be a little more concise.

@sbc100
sbc100 enabled auto-merge (squash) November 20, 2026 19:46
@sbc100
sbc100 merged commit 1660caf into main Nov 20, 2026
50 checks passed
@sbc100
sbc100 deleted the gbedford/jspi-make-async-function branch November 20, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants