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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.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/V0CustomElementConstructorBuilder.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp b/third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp
index 3564c21d31dc671633140390734dc89fb720293e..ae58a62b72f2026b9982d2701071b732f2022cf2 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp
@@ -266,9 +266,9 @@ bool V0CustomElementConstructorBuilder::PrototypeIsValid(
}
v8::PropertyAttribute property_attribute;
- if (!V8Call(prototype_->GetPropertyAttributes(
- context, V8String(isolate, "constructor")),
- property_attribute) ||
+ if (!prototype_
+ ->GetPropertyAttributes(context, V8String(isolate, "constructor"))
+ .To(&property_attribute) ||
(property_attribute & v8::DontDelete)) {
V0CustomElementException::ThrowException(
V0CustomElementException::kConstructorPropertyNotConfigurable, type,

Powered by Google App Engine
This is Rietveld 408576698