@@ -376,14 +376,7 @@ void AppendExceptionLine(Environment* env,
376376 .FromMaybe (false ));
377377}
378378
379- [[noreturn]] void Abort () {
380- DumpNativeBacktrace (stderr);
381- DumpJavaScriptBacktrace (stderr);
382- fflush (stderr);
383- ABORT_NO_BACKTRACE ();
384- }
385-
386- [[noreturn]] void Assert (const AssertionInfo& info) {
379+ void Assert (const AssertionInfo& info) {
387380 std::string name = GetHumanReadableProcessName ();
388381
389382 fprintf (stderr,
@@ -396,15 +389,15 @@ void AppendExceptionLine(Environment* env,
396389 info.message );
397390
398391 fflush (stderr);
399- Abort ();
392+ ABORT ();
400393}
401394
402395enum class EnhanceFatalException { kEnhance , kDontEnhance };
403396
404397/* *
405398 * Report the exception to the inspector, then print it to stderr.
406399 * This should only be used when the Node.js instance is about to exit
407- * (i.e. this should be followed by a env->Exit() or an Abort ()).
400+ * (i.e. this should be followed by a env->Exit() or an ABORT ()).
408401 *
409402 * Use enhance_stack = EnhanceFatalException::kDontEnhance
410403 * when it's unsafe to call into JavaScript.
@@ -576,8 +569,7 @@ static void ReportFatalException(Environment* env,
576569 ABORT ();
577570}
578571
579- [[noreturn]] void OOMErrorHandler (const char * location,
580- const v8::OOMDetails& details) {
572+ void OOMErrorHandler (const char * location, const v8::OOMDetails& details) {
581573 // We should never recover from this handler so once it's true it's always
582574 // true.
583575 is_in_oom.store (true );
@@ -1063,7 +1055,7 @@ static void TriggerUncaughtException(const FunctionCallbackInfo<Value>& args) {
10631055 if (env != nullptr && env->abort_on_uncaught_exception ()) {
10641056 ReportFatalException (
10651057 env, exception, message, EnhanceFatalException::kEnhance );
1066- Abort ();
1058+ ABORT ();
10671059 }
10681060 bool from_promise = args[1 ]->IsTrue ();
10691061 errors::TriggerUncaughtException (isolate, exception, message, from_promise);
@@ -1174,7 +1166,7 @@ void TriggerUncaughtException(Isolate* isolate,
11741166 // much we can do, so we just print whatever is useful and crash.
11751167 PrintToStderrAndFlush (
11761168 FormatCaughtException (isolate, context, error, message));
1177- Abort ();
1169+ ABORT ();
11781170 }
11791171
11801172 // Invoke process._fatalException() to give user a chance to handle it.
0 commit comments