diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-02-07 11:03:02 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-02-11 07:39:26 +0300 |
commit | 2e405e576bd629f9c4be4a13c74801b4c81ab378 (patch) | |
tree | 25af0cd2f989355351520b71c628533d6005e07d /src/node_errors.h | |
parent | 448b0c0afcd87f93aab8b863dcaf463827814ad5 (diff) |
src: remove unused class in node_errors.h
PR-URL: https://github.com/nodejs/node/pull/25980
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'src/node_errors.h')
-rw-r--r-- | src/node_errors.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/node_errors.h b/src/node_errors.h index cea7c108c16..28bf6a670f8 100644 --- a/src/node_errors.h +++ b/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); |