Skip to content

Remove NODE_CODE_CACHING setting - #27740

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:remove-node-code-caching
Sep 17, 2026
Merged

sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:remove-node-code-caching

Conversation

@sbc100

@sbc100 sbc100 commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Node removed support for serializing compiled WebAssembly.Module objects via v8.serialize() / v8.deserialize() over 5 years ago: nodejs/node#18265.

As a result, -sNODE_CODE_CACHING has not worked in any version of Node.js since Node 12, and test_node_code_caching has been disabled since #13489 (February 2021).

Move NODE_CODE_CACHING to LEGACY_SETTINGS for backwards compatibility with -sNODE_CODE_CACHING=0.

See: #13128

V8 removed support for serializing compiled `WebAssembly.Module`
objects via `v8.serialize()` / `v8.deserialize()` over 5 years ago:
nodejs/node#18265.

As a result, `-sNODE_CODE_CACHING` has not worked in any version of
Node.js since Node 12, and `test_node_code_caching` has been disabled
since emscripten-core#13489 (February 2021).

Move `NODE_CODE_CACHING` to `LEGACY_SETTINGS` for backwards
compatibility with `-sNODE_CODE_CACHING=0`.

See: emscripten-core#13128
@sbc100
sbc100 requested a review from kripken September 17, 2026 19:50

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sad this was never fixed... but I guess wasm is fast enough without it.

@sbc100
sbc100 enabled auto-merge (squash) September 17, 2026 20:44
@sbc100
sbc100 merged commit ec02c36 into emscripten-core:main Sep 17, 2026
42 checks passed
@sbc100
sbc100 deleted the remove-node-code-caching branch September 17, 2026 20:47
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