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

Unified Diff: third_party/WebKit/Source/modules/fetch/Body.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/modules/fetch/Body.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Body.cpp b/third_party/WebKit/Source/modules/fetch/Body.cpp
index cf2f3d4a7cbc7d689184712187e9d7c4042cde6b..8d58b1c91185a77f9251cb88489166be20525677 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Body.cpp
@@ -100,7 +100,7 @@ class BodyJsonConsumer final : public BodyConsumerBase {
v8::Local<v8::String> input_string = V8String(isolate, string);
v8::TryCatch trycatch(isolate);
v8::Local<v8::Value> parsed;
- if (V8Call(v8::JSON::Parse(isolate, input_string), parsed, trycatch))
+ if (v8::JSON::Parse(isolate, input_string).ToLocal(&parsed))
Resolver()->Resolve(parsed);
else
Resolver()->Reject(trycatch.Exception());

Powered by Google App Engine
This is Rietveld 408576698