Skip to content

Commit 9399375

Browse files
authored
Mentions that --turboshaft-wasm is Node.js 23.x.x only
This was removed as part of v8 13.x.x ([changeset](https://chromium-review.googlesource.com/c/v8/v8/+/6074953), [discussion](https://issues.chromium.org/issues/382509286)). Node.js 24.0.0 includes this version of v8, so specifying `--turboshaft-wasm` will cause Node to exit with `bad option: --turboshaft-wasm`
1 parent fef7485 commit 9399375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/project/webassembly.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jsEnv := {
7878
"--experimental-wasm-exnref", // always required
7979
"--experimental-wasm-jspi", // required for js.async/js.await
8080
"--experimental-wasm-imported-strings", // optional (good for performance)
81-
"--turboshaft-wasm", // optional, but significantly increases stability
81+
"--turboshaft-wasm", // optional, Node.js 23.x.x only, but significantly increases stability
8282
))
8383
new NodeJSEnv(config)
8484
},
@@ -98,7 +98,7 @@ As mentioned above, Node.js 23 and above requires the following flags:
9898
* `--experimental-wasm-exnref`: always required
9999
* `--experimental-wasm-jspi`: required to use `js.async`/`js.await`
100100
* `--experimental-wasm-imported-strings`: optional (good for performance)
101-
* `--turboshaft-wasm`: optional, bug significantly increases stability
101+
* `--turboshaft-wasm`: optional, bug significantly increases stability. Only applies to Node.js 23.x.x: version 24.0.0 and up enables this by default, and has removed the flag.
102102

103103
### Chrome
104104

0 commit comments

Comments
 (0)