Backed out changeset 1506a6e5ee37 (bug 1349064)

This commit is contained in:
Sebastian Hengst 2017-04-06 22:48:36 +02:00
parent f58d68534e
commit e3ce8e00e3

View File

@ -32,9 +32,6 @@
# define MOZ_THROW_NORETURN MOZ_NORETURN
#endif
// Handle `_GLIBCXX_THROW_OR_ABORT(regex_error(__ecode, __what));` et al.
#define _GLIBCXX_THROW_OR_ABORT(_EXC) mozalloc_abort( (_EXC).what() )
namespace std {
// NB: user code is not supposed to touch the std:: namespace. We're
@ -141,15 +138,6 @@ __throw_system_error(int err)
mozalloc_abort(error);
}
MOZ_THROW_NORETURN MOZ_EXPORT MOZ_ALWAYS_INLINE void
__throw_regex_error(int __ecode)
{
char error[128];
snprintf(error, sizeof(error)-1,
"fatal: STL threw regex_error(%d)", __ecode);
mozalloc_abort(error);
}
} // namespace std
#undef MOZ_THROW_NORETURN