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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8DevToolsHostCustom.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/custom/V8DevToolsHostCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp
index ffffdab73748bb3d6c904f54b3e0b48dd7f3ff3d..fbc6d6edfe2ca1b81eaee354c9f5c5e7a5c3a95f 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp
@@ -99,7 +99,7 @@ static bool PopulateContextMenuItems(v8::Isolate* isolate,
menu.AppendItem(item);
} else {
int32_t int32_id;
- if (!V8Call(id->Int32Value(context), int32_id))
+ if (!id->Int32Value(context).To(&int32_id))
return false;
ContextMenuAction typed_id = static_cast<ContextMenuAction>(
kContextMenuItemBaseCustomTag + int32_id);

Powered by Google App Engine
This is Rietveld 408576698