Fix error: no matching constructor for initialization of 'v8::TryCatch'
The deprecated constructor has been removed in https://chromium-review.googlesource.com/848782
This commit is contained in:
parent
5df0362361
commit
a218c9696c
1 changed files with 4 additions and 4 deletions
|
@ -213,7 +213,7 @@ v8::Local<v8::Value> V8ValueConverter::ToV8Array(
|
|||
|
||||
v8::Local<v8::Value> child_v8 = ToV8ValueImpl(isolate, child);
|
||||
|
||||
v8::TryCatch try_catch;
|
||||
v8::TryCatch try_catch(isolate);
|
||||
result->Set(static_cast<uint32_t>(i), child_v8);
|
||||
if (try_catch.HasCaught())
|
||||
LOG(ERROR) << "Setter for index " << i << " threw an exception.";
|
||||
|
@ -233,7 +233,7 @@ v8::Local<v8::Value> V8ValueConverter::ToV8Object(
|
|||
const std::string& key = iter.key();
|
||||
v8::Local<v8::Value> child_v8 = ToV8ValueImpl(isolate, &iter.value());
|
||||
|
||||
v8::TryCatch try_catch;
|
||||
v8::TryCatch try_catch(isolate);
|
||||
result.Set(key, child_v8);
|
||||
if (try_catch.HasCaught()) {
|
||||
LOG(ERROR) << "Setter for property " << key.c_str() << " threw an "
|
||||
|
@ -386,7 +386,7 @@ base::Value* V8ValueConverter::FromV8Array(v8::Local<v8::Array> val,
|
|||
|
||||
// Only fields with integer keys are carried over to the ListValue.
|
||||
for (uint32_t i = 0; i < val->Length(); ++i) {
|
||||
v8::TryCatch try_catch;
|
||||
v8::TryCatch try_catch(isolate);
|
||||
v8::Local<v8::Value> child_v8 = val->Get(i);
|
||||
if (try_catch.HasCaught()) {
|
||||
LOG(ERROR) << "Getter for index " << i << " threw an exception.";
|
||||
|
@ -445,7 +445,7 @@ base::Value* V8ValueConverter::FromV8Object(v8::Local<v8::Object> val,
|
|||
|
||||
v8::String::Utf8Value name_utf8(key->ToString());
|
||||
|
||||
v8::TryCatch try_catch;
|
||||
v8::TryCatch try_catch(isolate);
|
||||
v8::Local<v8::Value> child_v8 = val->Get(key);
|
||||
|
||||
if (try_catch.HasCaught()) {
|
||||
|
|
Loading…
Reference in a new issue