diff --git a/libcxx/src/support/runtime/exception_fallback.ipp b/libcxx/src/support/runtime/exception_fallback.ipp --- a/libcxx/src/support/runtime/exception_fallback.ipp +++ b/libcxx/src/support/runtime/exception_fallback.ipp @@ -49,7 +49,6 @@ return __libcpp_atomic_load(&__terminate_handler); } -#ifndef __EMSCRIPTEN__ // We provide this in JS _LIBCPP_NORETURN void terminate() _NOEXCEPT @@ -72,9 +71,7 @@ } #endif // _LIBCPP_NO_EXCEPTIONS } -#endif // !__EMSCRIPTEN__ -#if !defined(__EMSCRIPTEN__) bool uncaught_exception() _NOEXCEPT { return uncaught_exceptions() > 0; } int uncaught_exceptions() _NOEXCEPT @@ -83,7 +80,6 @@ fprintf(stderr, "uncaught_exceptions not yet implemented\n"); ::abort(); } -#endif // !__EMSCRIPTEN__ exception::~exception() _NOEXCEPT