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

Unified Diff: third_party/WebKit/Source/modules/nfc/NFC.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
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/ReadableStreamBytesConsumerTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/nfc/NFC.cpp
diff --git a/third_party/WebKit/Source/modules/nfc/NFC.cpp b/third_party/WebKit/Source/modules/nfc/NFC.cpp
index 4a3d6ece9cdd2b6a0ae11be11120a9e197a1d927..3f5a697e35bca44975762a7699e2f98c16344b5a 100644
--- a/third_party/WebKit/Source/modules/nfc/NFC.cpp
+++ b/third_party/WebKit/Source/modules/nfc/NFC.cpp
@@ -512,7 +512,7 @@ v8::Local<v8::Value> ToV8(
device::nfc::mojom::blink::NFCRecordType::JSON) {
v8::Local<v8::Value> json_object;
v8::TryCatch try_catch(isolate);
- if (!V8Call(v8::JSON::Parse(isolate, string), json_object, try_catch)) {
+ if (!v8::JSON::Parse(isolate, string).ToLocal(&json_object)) {
return v8::Null(isolate);
}
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/ReadableStreamBytesConsumerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698