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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.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/ScriptCustomElementDefinition.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp
index d1ae4015953c7e3aa6a27e356a3d600cc1c70eab..3afb37ad9d7421b5789a038401c6c1997d72f900 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp
@@ -274,9 +274,9 @@ Element* ScriptCustomElementDefinition::CallConstructor() {
ExecutionContext* execution_context =
ExecutionContext::From(script_state_.Get());
v8::Local<v8::Value> result;
- if (!V8Call(V8ScriptRunner::CallAsConstructor(isolate, Constructor(),
- execution_context, 0, nullptr),
- result)) {
+ if (!V8ScriptRunner::CallAsConstructor(isolate, Constructor(),
+ execution_context, 0, nullptr)
+ .ToLocal(&result)) {
return nullptr;
}
return V8Element::toImplWithTypeCheck(isolate, result);

Powered by Google App Engine
This is Rietveld 408576698