From: Yadd Date: Fri, 8 Nov 2024 04:35:57 +0000 (+0000) Subject: drop simd call X-Git-Tag: archive/raspbian/7.3.0+dfsg1+_cs24.12.11-1+rpi1~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a9ac08713c7fa9c1a50e73b95f48e50d450f9313;p=node-undici.git drop simd call Forwarded: not-needed Last-Update: 2023-07-09 Gbp-Pq: Name drop-simd.patch --- diff --git a/lib/client.js b/lib/client.js index 22cb390..39f3551 100644 --- a/lib/client.js +++ b/lib/client.js @@ -491,18 +491,7 @@ const EMPTY_BUF = Buffer.alloc(0) async function lazyllhttp () { const llhttpWasmData = process.env.JEST_WORKER_ID ? require('./llhttp/llhttp-wasm.js') : undefined - let mod - try { - mod = await WebAssembly.compile(Buffer.from(require('./llhttp/llhttp_simd-wasm.js'), 'base64')) - } catch (e) { - /* istanbul ignore next */ - - // We could check if the error was caused by the simd option not - // being enabled, but the occurring of this other error - // * https://github.com/emscripten-core/emscripten/issues/11495 - // got me to remove that check to avoid breaking Node 12. - mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || require('./llhttp/llhttp-wasm.js'), 'base64')) - } + const mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || require('./llhttp/llhttp-wasm.js'), 'base64')) return await WebAssembly.instantiate(mod, { env: {