From d78542c4e7b6aa80ac32ca42e1f75c0e0bd2cf28 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Thu, 30 Jul 2026 23:01:12 +0000 Subject: [PATCH 1/3] [EH] Reenable Wasm EH tests Wasm EH tests were temporarily disabled in #27445 to make a LLVM roll land. This reenables them. --- test/decorators.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/decorators.py b/test/decorators.py index 5e176208fa931..38dd9d37e5707 100644 --- a/test/decorators.py +++ b/test/decorators.py @@ -579,9 +579,6 @@ def metafunc(self, mode, *args, **kwargs): if DEBUG: print('parameterize:eh_mode=%s' % mode) if mode in {'wasm', 'wasm_legacy'}: - # FIXME Remove this after - # https://github.com/emscripten-core/emscripten/issues/27442 is fixed - self.skipTest('https://github.com/emscripten-core/emscripten/issues/27442') # Wasm EH is currently supported only in wasm backend and V8 if self.is_wasm2js(): self.skipTest('wasm2js does not support wasm EH/SjLj') From 0e85e3a0ccfdcb1ef70671c3aabeeff03af59991 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Mon, 3 Aug 2026 04:27:50 +0000 Subject: [PATCH 2/3] Remove a stale comment --- system/lib/libunwind/src/Unwind-wasm.c | 7 +++++++ test/decorators.py | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/system/lib/libunwind/src/Unwind-wasm.c b/system/lib/libunwind/src/Unwind-wasm.c index a8ce4852eb8e4..6410c08ea373c 100644 --- a/system/lib/libunwind/src/Unwind-wasm.c +++ b/system/lib/libunwind/src/Unwind-wasm.c @@ -22,6 +22,13 @@ _LIBUNWIND_EXPORT thread_local struct _Unwind_LandingPadContext __wasm_lpad_context; +// Backwards compatibility for older LLVMs that still emit calls to +// _Unwind_CallPersonality. +extern _Unwind_Reason_Code __gxx_wasm_personality_v0(void *); +_LIBUNWIND_EXPORT _Unwind_Reason_Code _Unwind_CallPersonality(void *exception_ptr) { + return __gxx_wasm_personality_v0(exception_ptr); +} + /// Called by __cxa_throw. _LIBUNWIND_EXPORT _Unwind_Reason_Code _Unwind_RaiseException(_Unwind_Exception *exception_object) { diff --git a/test/decorators.py b/test/decorators.py index 38dd9d37e5707..525596ccaac4a 100644 --- a/test/decorators.py +++ b/test/decorators.py @@ -579,7 +579,6 @@ def metafunc(self, mode, *args, **kwargs): if DEBUG: print('parameterize:eh_mode=%s' % mode) if mode in {'wasm', 'wasm_legacy'}: - # Wasm EH is currently supported only in wasm backend and V8 if self.is_wasm2js(): self.skipTest('wasm2js does not support wasm EH/SjLj') self.cflags.append('-fwasm-exceptions') From f2d37ad986f727a69e1ab0eb1919876cf0a183b7 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Mon, 3 Aug 2026 08:10:28 +0000 Subject: [PATCH 3/3] Remove accidental change --- system/lib/libunwind/src/Unwind-wasm.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/system/lib/libunwind/src/Unwind-wasm.c b/system/lib/libunwind/src/Unwind-wasm.c index 6410c08ea373c..a8ce4852eb8e4 100644 --- a/system/lib/libunwind/src/Unwind-wasm.c +++ b/system/lib/libunwind/src/Unwind-wasm.c @@ -22,13 +22,6 @@ _LIBUNWIND_EXPORT thread_local struct _Unwind_LandingPadContext __wasm_lpad_context; -// Backwards compatibility for older LLVMs that still emit calls to -// _Unwind_CallPersonality. -extern _Unwind_Reason_Code __gxx_wasm_personality_v0(void *); -_LIBUNWIND_EXPORT _Unwind_Reason_Code _Unwind_CallPersonality(void *exception_ptr) { - return __gxx_wasm_personality_v0(exception_ptr); -} - /// Called by __cxa_throw. _LIBUNWIND_EXPORT _Unwind_Reason_Code _Unwind_RaiseException(_Unwind_Exception *exception_object) {