deps: cherry-pick f5fad6d from upstream v8
Original commit message: 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} PR-URL: https://github.com/nodejs/node/pull/12826 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
36ba9e6e0c
commit
554fa24916
5
deps/v8/include/v8.h
vendored
5
deps/v8/include/v8.h
vendored
@ -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
|
||||
|
4
deps/v8/src/api.cc
vendored
4
deps/v8/src/api.cc
vendored
@ -2709,6 +2709,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user