From 403c45fcc9a70acfd8d2429fa96ddcef0c0b0ad4 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 dfe84c67c165f8..62648dbb3fdd69 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2602,9 +2602,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()); + } }