pyodide/emsdk/patches/0004-Upstream-PR-https-gith...

29 lines
833 B
Diff

From 9352fac9a4618603fbe5ce7ad97a26a3963704bd Mon Sep 17 00:00:00 2001
From: Joe Marshall <joe.marshall@nottingham.ac.uk>
Date: Sat, 13 Apr 2024 21:41:11 +0100
Subject: [PATCH 4/6] Upstream PR:
https://github.com/emscripten-core/emscripten/pull/21759
---
src/library_dylink.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/library_dylink.js b/src/library_dylink.js
index c3f3c2bbf..e0fa4721c 100644
--- a/src/library_dylink.js
+++ b/src/library_dylink.js
@@ -93,6 +93,10 @@ var LibraryDylink = {
if (e !== e+0) throw e;
#endif
_setThrew(1, 0);
+ // In theory this if could be done on creating the function,
+ // but I just added this to save wasting code space
+ // and it only happens on an exception
+ if (sig[0] == "j") return 0n;
}
}
},
--
2.34.1