From 6666ccf9c33ce0efd1e87cf84f197b5cb2ab73ef Mon Sep 17 00:00:00 2001 From: Yadd Date: Fri, 12 Apr 2024 12:05:59 +0200 Subject: [PATCH] drop simd call Forwarded: not-needed Last-Update: 2023-07-09 Gbp-Pq: Name drop-simd.patch --- lib/client.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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: { -- 2.30.2