Commit f5fad6d9 authored by daniel.bevenius's avatar daniel.bevenius Committed by Commit bot

Expose TryCatch is_verbose_

This commit adds a getter for the private is_verbose_ member.
The use case for this comes from Node.js where the ability to avoid
calling FatalException if the TryCatch is verbose would be nice to have.

BUG=

Review-Url: https://codereview.chromium.org/2840803002
Cr-Commit-Position: refs/heads/master@{#45018}
parent b8e9bd40
......@@ -8207,6 +8207,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
......
......@@ -2711,6 +2711,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment