★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/6c6e678eaaNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files

src: remove unused class in node_errors.h

PR-URL: #25980
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information...
gengjiawen authored and targos committed Feb 7, 2019
1 parent 3eb6f61 commit 6c6e678eaa4a15b8f8afa148214eb6ca6eb3f3b7
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/node_errors.h
@@ -23,17 +23,6 @@ void AppendExceptionLine(Environment* env,
[[noreturn]] void FatalError(const char* location, const char* message);
void OnFatalError(const char* location, const char* message);

// Like a `TryCatch` but exits the process if an exception was caught.
class FatalTryCatch : public v8::TryCatch {
public:
explicit FatalTryCatch(Environment* env)
: TryCatch(env->isolate()), env_(env) {}
~FatalTryCatch();

private:
Environment* env_;
};

void PrintErrorString(const char* format, ...);

void ReportException(Environment* env, const v8::TryCatch& try_catch);

0 comments on commit 6c6e678

Please sign in to comment.
You can’t perform that action at this time.