drop simd call
authorYadd <yadd@debian.org>
Fri, 12 Apr 2024 10:05:59 +0000 (12:05 +0200)
committerJérémy Lal <kapouer@melix.org>
Fri, 12 Apr 2024 10:05:59 +0000 (12:05 +0200)
Forwarded: not-needed
Last-Update: 2023-07-09

Gbp-Pq: Name drop-simd.patch

lib/client.js

index 22cb39039da7fbafb30c83192ea74e2fecf42dbf..39f3551b1bfd5096dc31a26cd3b34d06795a8b81 100644 (file)
@@ -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: {