diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index ea4119abed29de..ce7741a08c0364 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -8168,6 +8168,11 @@ class V8_EXPORT TryCatch { */ void SetVerbose(bool value); + /** + * Returns true if verbosity is enabled. + */ + bool IsVerbose() const; + /** * Set whether or not this TryCatch should capture a Message object * which holds source information about where the exception diff --git a/deps/v8/src/api.cc b/deps/v8/src/api.cc index 8e0b0a8a1e6727..cacf469d0dd555 100644 --- a/deps/v8/src/api.cc +++ b/deps/v8/src/api.cc @@ -2710,6 +2710,10 @@ void v8::TryCatch::SetVerbose(bool value) { is_verbose_ = value; } +bool v8::TryCatch::IsVerbose() const { + return is_verbose_; +} + void v8::TryCatch::SetCaptureMessage(bool value) { capture_message_ = value;