[V8] Simplify silent abort by raising SIGABRT directly
[profile/ivi/qtjsbackend.git] / src / 3rdparty / v8 / src / platform-win32.cc
index ba69bdc..97159aa 100644 (file)
@@ -918,12 +918,8 @@ void OS::Sleep(int milliseconds) {
 
 void OS::Abort() {
   if (!IsDebuggerPresent()) {
-#ifdef _MSC_VER
     // Make the MSVCRT do a silent abort.
-    _set_abort_behavior(0, _WRITE_ABORT_MSG);
-    _set_abort_behavior(0, _CALL_REPORTFAULT);
-#endif  // _MSC_VER
-    abort();
+    raise(SIGABRT);
   } else {
     DebugBreak();
   }