From f807f9fdef4ed1a38ae104fb94fde2e1190493e7 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Fri, 16 Oct 2026 12:11:01 +0200 Subject: [PATCH] deps: use non-SIMD llhttp on the RISC-V architecture There is no support for RISC-V in undici/llhttp yet so tests fail: Test failed: test//es-module/test-wasm-web-api.js Test failed: test//parallel/test-inspector-network-content-type.js Use of non-SIMD version make tests pass. Observed in NodeJS 24.21.0 version. Signed-off-by: Marcin Juszkiewicz --- deps/undici/src/lib/dispatcher/client-h1.js | 7 ++++++- deps/undici/undici.js | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deps/undici/src/lib/dispatcher/client-h1.js b/deps/undici/src/lib/dispatcher/client-h1.js index 3cc24713a37e..a9e911a7c438 100644 --- a/deps/undici/src/lib/dispatcher/client-h1.js +++ b/deps/undici/src/lib/dispatcher/client-h1.js @@ -70,8 +70,13 @@ function lazyllhttp () { let mod - // We disable wasm SIMD on older versions of Node.js on ppc64 that are broken on Power >=9 architectures. + // We disable wasm SIMD on: + // - older versions of Node.js on ppc64 that are broken on Power >=9 architectures. + // - on RISC-V as there is no code yet let useWasmSIMD = true + if (process.arch === 'riscv64') { + useWasmSIMD = false; + } if (process.arch === 'ppc64') { const [major, minor] = process.versions.node.split('.').map(n => parseInt(n, 10)) if (major < 24 || (major === 24 && minor < 12)) { diff --git a/deps/undici/undici.js b/deps/undici/undici.js index 944a6fa5fce2..d553905ec43b 100644 --- a/deps/undici/undici.js +++ b/deps/undici/undici.js @@ -7166,6 +7166,9 @@ var require_client_h1 = __commonJS({ const llhttpWasmData = process.env.JEST_WORKER_ID ? require_llhttp_wasm() : void 0; let mod; let useWasmSIMD = true; + if (process.arch === 'riscv64') { + useWasmSIMD = false; + } if (process.arch === "ppc64") { const [major, minor] = process.versions.node.split(".").map((n) => parseInt(n, 10)); if (major < 24 || major === 24 && minor < 12) {