mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
src: mark fatal error functions as noreturn
OnFatalError and OOMErrorHandler will not return control flow to the calling function. node::FatalError is an alias of node::OnFatalError. Replace all the callsites with node::OnFatalError instead. PR-URL: https://github.com/nodejs/node/pull/47695 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
This commit is contained in:
1 parent
f34a07d3a7
commit
6700aac615
7 files changed
+14
-20
No files matched your search
+3
-3
@@ -19,9 +19,9 @@ void AppendExceptionLine(Environment* env,
|
||||
v8::Local<v8::Message> message,
|
||||
enum ErrorHandlingMode mode);
|
||||
|
||||
[[noreturn]] void FatalError(const char* location, const char* message);
|
||||
void OnFatalError(const char* location, const char* message);
|
||||
void OOMErrorHandler(const char* location, const v8::OOMDetails& details);
|
||||
[[noreturn]] void OnFatalError(const char* location, const char* message);
|
||||
[[noreturn]] void OOMErrorHandler(const char* location,
|
||||
const v8::OOMDetails& details);
|
||||
|
||||
// Helpers to construct errors similar to the ones provided by
|
||||
// lib/internal/errors.js.
|
||||
|
||||
Reference in new issue
Block a user