From 9399375d79994d6161d7dea913bd4b6dec0bdbb1 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 14 May 2025 13:47:18 +0200 Subject: [PATCH] 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` --- doc/project/webassembly.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/project/webassembly.md b/doc/project/webassembly.md index 49a3ebe..d487d18 100644 --- a/doc/project/webassembly.md +++ b/doc/project/webassembly.md @@ -78,7 +78,7 @@ jsEnv := { "--experimental-wasm-exnref", // always required "--experimental-wasm-jspi", // required for js.async/js.await "--experimental-wasm-imported-strings", // optional (good for performance) - "--turboshaft-wasm", // optional, but significantly increases stability + "--turboshaft-wasm", // optional, Node.js 23.x.x only, but significantly increases stability )) new NodeJSEnv(config) }, @@ -98,7 +98,7 @@ As mentioned above, Node.js 23 and above requires the following flags: * `--experimental-wasm-exnref`: always required * `--experimental-wasm-jspi`: required to use `js.async`/`js.await` * `--experimental-wasm-imported-strings`: optional (good for performance) -* `--turboshaft-wasm`: optional, bug significantly increases stability +* `--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. ### Chrome