Skip to content

Require node v24 for WASM_EXCEPTIONS feature - #27105

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:WASM_EXCEPTIONS
Aug 11, 2026
Merged

Require node v24 for WASM_EXCEPTIONS feature#27105
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:WASM_EXCEPTIONS

Conversation

@sbc100

@sbc100 sbc100 commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Now that Node 24 is shipping with emsdk we can remove this hack I think: emscripten-core/emsdk#1760.

We can also remove the node_exception_flags helper which was designed to let older versions of node run the program during typescript generation, but that use case doesn't seems useful/necessary anymore.

Follow up #27103

@sbc100
sbc100 requested a review from tlively June 11, 2026 21:17
@sbc100
sbc100 force-pushed the WASM_EXCEPTIONS branch 2 times, most recently from 495d889 to 136b22a Compare June 11, 2026 21:28
@sbc100
sbc100 enabled auto-merge (squash) June 11, 2026 21:32
@sbc100 sbc100 changed the title Require node v26 for GROWABLE_ARRAYBUFFERS feature Require node v26 for WASM_EXCEPTIONS feature Jun 11, 2026
@guybedford

Copy link
Copy Markdown
Collaborator

Out of curiosity, what inhibits this for Node.js 24?

@sbc100

sbc100 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator Author

IIUC node 24 requires a flag (--experimental-wasm-exnref) to make it work. I think we don't consider something actually shipping until its unflagged.

@guybedford

guybedford commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

It is supported unflagged in Node.js 24, and I was even able to backport the full patchset to Node.js 22 as well (nodejs/node#62783) so it also works there unflagged.

@sbc100

sbc100 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator Author

Oh, if thats true then maybe the existing comment here is just wrong? In which case we can maybe move forward with landing this PR sooner rather than later since we just update emsdk node to v24: emscripten-core/emsdk#1760

@sbc100 sbc100 changed the title Require node v26 for WASM_EXCEPTIONS feature Require node v24 for WASM_EXCEPTIONS feature Aug 10, 2026
@sbc100
sbc100 requested a review from brendandahl August 10, 2026 23:09
@guybedford

guybedford commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

It was as of 24.15.0 in nodejs/node#62567.

@sbc100
sbc100 merged commit 032b3ba into emscripten-core:main Aug 11, 2026
41 checks passed
@sbc100
sbc100 deleted the WASM_EXCEPTIONS branch August 11, 2026 00:10
@sbc100

sbc100 commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator Author

Sorry the comment message used for the final merged commit was completely wrong ....

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.

3 participants