From fefab9026b4dac57de30f81dd39b9c2f20a3ada8 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 3 May 2017 19:17:22 +0200 Subject: [PATCH] src: only call FatalException if not verbose This commit attempts to address the TODO regarding not calling FatalException if the try_catch is verbose. PR-URL: https://github.com/nodejs/node/pull/12826 Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Ben Noordhuis --- src/node.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node.cc b/src/node.cc index cae9d2a893cb68..f943d75a575595 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2648,9 +2648,9 @@ void FatalException(Isolate* isolate, void FatalException(Isolate* isolate, const TryCatch& try_catch) { HandleScope scope(isolate); - // TODO(bajtos) do not call FatalException if try_catch is verbose - // (requires V8 API to expose getter for try_catch.is_verbose_) - FatalException(isolate, try_catch.Exception(), try_catch.Message()); + if (!try_catch.IsVerbose()) { + FatalException(isolate, try_catch.Exception(), try_catch.Message()); + } }