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

Unified Diff: third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.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/BodyStreamBufferTest.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp b/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp
index 00663bfc3e94202395b4769f509252da1a144501..de9a121d1fd90d23974111d3651acc6994d506f1 100644
--- a/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp
+++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp
@@ -41,14 +41,14 @@ class BodyStreamBufferTest : public ::testing::Test {
v8::Local<v8::Script> script;
v8::MicrotasksScope microtasks(script_state->GetIsolate(),
v8::MicrotasksScope::kDoNotRunMicrotasks);
- if (!V8Call(v8::String::NewFromUtf8(script_state->GetIsolate(), s,
- v8::NewStringType::kNormal),
- source)) {
+ if (!v8::String::NewFromUtf8(script_state->GetIsolate(), s,
+ v8::NewStringType::kNormal)
+ .ToLocal(&source)) {
ADD_FAILURE();
return ScriptValue();
}
- if (!V8Call(v8::Script::Compile(script_state->GetContext(), source),
- script)) {
+ if (!v8::Script::Compile(script_state->GetContext(), source)
+ .ToLocal(&script)) {
ADD_FAILURE() << "Compilation fails";
return ScriptValue();
}

Powered by Google App Engine
This is Rietveld 408576698