Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion deps/undici/src/lib/dispatcher/client-h1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
3 changes: 3 additions & 0 deletions deps/undici/undici.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down