summaryrefslogtreecommitdiffstats
path: root/debian/patches/drop-simd.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-21 20:56:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-21 20:56:20 +0000
commit868522aa377a4519adb0b9f402586ab7a41b86ba (patch)
tree44e805e154a3ace9bd8dbac73843e80d296b7814 /debian/patches/drop-simd.patch
parentAdding upstream version 5.28.2+dfsg1+~cs23.11.12.3. (diff)
downloadnode-undici-868522aa377a4519adb0b9f402586ab7a41b86ba.tar.xz
node-undici-868522aa377a4519adb0b9f402586ab7a41b86ba.zip
Adding debian version 5.28.2+dfsg1+~cs23.11.12.3-6.debian/5.28.2+dfsg1+_cs23.11.12.3-6debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/drop-simd.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/drop-simd.patch b/debian/patches/drop-simd.patch
new file mode 100644
index 0000000..cf04bb9
--- /dev/null
+++ b/debian/patches/drop-simd.patch
@@ -0,0 +1,27 @@
+Description: drop simd call
+Author: Yadd <yadd@debian.org>
+Forwarded: not-needed
+Last-Update: 2023-07-09
+
+--- a/lib/client.js
++++ b/lib/client.js
+@@ -491,18 +491,7 @@
+ 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: {