aboutsummaryrefslogtreecommitdiff
path: root/system/lib
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-02-09 14:52:54 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-02-09 14:53:31 -0500
commit7e97c880b6281d53b1f75e34989ee61d434cad2a (patch)
treeb8f9296db7ddfa1403d1289320d54a3fb140ba9a /system/lib
parent7b088a2235cc89e9ca360e970199b26cf99736eb (diff)
Always pick the JS implementation of uncaught_exception
Diffstat (limited to 'system/lib')
-rw-r--r--system/lib/libcxx/exception.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/lib/libcxx/exception.cpp b/system/lib/libcxx/exception.cpp
index 26d97a96..cba355e9 100644
--- a/system/lib/libcxx/exception.cpp
+++ b/system/lib/libcxx/exception.cpp
@@ -86,6 +86,7 @@ std::terminate() _NOEXCEPT
}
#endif // LIBCXXRT
+#ifndef EMSCRIPTEN // This is implemented in Javascript for Emscripten
bool std::uncaught_exception() _NOEXCEPT
{
#if __APPLE__
@@ -99,6 +100,7 @@ bool std::uncaught_exception() _NOEXCEPT
::abort();
#endif // __APPLE__
}
+#endif // EMSCRIPTEN
namespace std
{