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

Unified Diff: Source/bindings/core/v8/ScriptPromise.cpp

Issue 1111163003: Replace v8::Handle<> with v8::Local<> in bindings/core/v8/* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/bindings/core/v8/ScriptPromise.h ('k') | Source/bindings/core/v8/ScriptPromiseProperty.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ScriptPromise.cpp
diff --git a/Source/bindings/core/v8/ScriptPromise.cpp b/Source/bindings/core/v8/ScriptPromise.cpp
index 5566de8572c16558a5d335b6ae70594102bdf104..d04f450bec5dca028705e54ad7bd9f935ff75e5b 100644
--- a/Source/bindings/core/v8/ScriptPromise.cpp
+++ b/Source/bindings/core/v8/ScriptPromise.cpp
@@ -44,7 +44,7 @@ namespace {
struct WithScriptState {
// Used by ToV8Value<WithScriptState, ScriptState*>.
- static v8::Handle<v8::Object> getCreationContext(ScriptState* scriptState)
+ static v8::Local<v8::Object> getCreationContext(ScriptState* scriptState)
{
return scriptState->context()->Global();
}
@@ -85,21 +85,21 @@ void ScriptPromise::InternalResolver::reject(v8::Local<v8::Value> value)
clear();
}
-ScriptPromise::ScriptPromise(ScriptState* scriptState, v8::Handle<v8::Value> value)
+ScriptPromise::ScriptPromise(ScriptState* scriptState, v8::Local<v8::Value> value)
: m_scriptState(scriptState)
{
if (value.IsEmpty())
return;
if (!value->IsPromise()) {
- m_promise = ScriptValue(scriptState, v8::Handle<v8::Value>());
+ m_promise = ScriptValue(scriptState, v8::Local<v8::Value>());
V8ThrowException::throwTypeError(scriptState->isolate(), "the given value is not a Promise");
return;
}
m_promise = ScriptValue(scriptState, value);
}
-ScriptPromise ScriptPromise::then(v8::Handle<v8::Function> onFulfilled, v8::Handle<v8::Function> onRejected)
+ScriptPromise ScriptPromise::then(v8::Local<v8::Function> onFulfilled, v8::Local<v8::Function> onRejected)
{
if (m_promise.isEmpty())
return ScriptPromise();
@@ -128,7 +128,7 @@ ScriptPromise ScriptPromise::cast(ScriptState* scriptState, const ScriptValue& v
return ScriptPromise::cast(scriptState, value.v8Value());
}
-ScriptPromise ScriptPromise::cast(ScriptState* scriptState, v8::Handle<v8::Value> value)
+ScriptPromise ScriptPromise::cast(ScriptState* scriptState, v8::Local<v8::Value> value)
{
if (value.IsEmpty())
return ScriptPromise();
@@ -146,7 +146,7 @@ ScriptPromise ScriptPromise::reject(ScriptState* scriptState, const ScriptValue&
return ScriptPromise::reject(scriptState, value.v8Value());
}
-ScriptPromise ScriptPromise::reject(ScriptState* scriptState, v8::Handle<v8::Value> value)
+ScriptPromise ScriptPromise::reject(ScriptState* scriptState, v8::Local<v8::Value> value)
{
if (value.IsEmpty())
return ScriptPromise();
@@ -162,7 +162,7 @@ ScriptPromise ScriptPromise::rejectWithDOMException(ScriptState* scriptState, DO
return reject(scriptState, toV8(exception, scriptState->context()->Global(), scriptState->isolate()));
}
-v8::Local<v8::Promise> ScriptPromise::rejectRaw(ScriptState* scriptState, v8::Handle<v8::Value> value)
+v8::Local<v8::Promise> ScriptPromise::rejectRaw(ScriptState* scriptState, v8::Local<v8::Value> value)
{
if (value.IsEmpty())
return v8::Local<v8::Promise>();
« no previous file with comments | « Source/bindings/core/v8/ScriptPromise.h ('k') | Source/bindings/core/v8/ScriptPromiseProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698