Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.cpp

Issue 2836093004: Remove V8Call and replace with v8::Maybe<T>::To and v8::MaybeLocal<T>::ToLocal. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.cpp
index 7eceb55f0a8a44ef89c4409da1322a46651c9205..2068c1e092892d2c822519d979a903f8772370d3 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.cpp
@@ -84,7 +84,7 @@ bool ScriptCustomElementDefinitionBuilder::ValueForName(
v8::Local<v8::Context> context = script_state_->GetContext();
v8::Local<v8::String> name_string = V8AtomicString(isolate, name);
v8::TryCatch try_catch(isolate);
- if (!V8Call(object->Get(context, name_string), value, try_catch)) {
+ if (!object->Get(context, name_string).ToLocal(&value)) {
exception_state_.RethrowV8Exception(try_catch.Exception());
return false;
}

Powered by Google App Engine
This is Rietveld 408576698