Skip to content

Commit

Permalink
src: remove unused class in node_errors.h
Browse files Browse the repository at this point in the history
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 11, 2019
1 parent 3eb6f61 commit 6c6e678
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/node_errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6c6e678

Please sign in to comment.