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

Unified Diff: Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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: Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp
diff --git a/Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp b/Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp
index 8dea405170225c50671526597aba831bad6ab2b4..aede1dbabbabcfbbe8c9cd4f3a0dd5edc527edc4 100644
--- a/Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp
+++ b/Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp
@@ -44,25 +44,25 @@ using namespace WTF;
namespace WebCore {
-void V8SQLTransactionSync::executeSqlMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8SQLTransactionSync::executeSqlMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (!args.Length()) {
- setDOMException(SyntaxError, args.GetIsolate());
+ if (!info.Length()) {
+ setDOMException(SyntaxError, info.GetIsolate());
return;
}
- V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, statement, args[0]);
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, statement, info[0]);
Vector<SQLValue> sqlValues;
- if (args.Length() > 1 && !isUndefinedOrNull(args[1])) {
- if (!args[1]->IsObject()) {
- setDOMException(TypeMismatchError, args.GetIsolate());
+ if (info.Length() > 1 && !isUndefinedOrNull(info[1])) {
+ if (!info[1]->IsObject()) {
+ setDOMException(TypeMismatchError, info.GetIsolate());
return;
}
uint32_t sqlArgsLength = 0;
- v8::Local<v8::Object> sqlArgsObject = args[1]->ToObject();
+ v8::Local<v8::Object> sqlArgsObject = info[1]->ToObject();
V8TRYCATCH_VOID(v8::Local<v8::Value>, length, sqlArgsObject->Get(v8::String::New("length")));
if (isUndefinedOrNull(length))
@@ -71,7 +71,7 @@ void V8SQLTransactionSync::executeSqlMethodCustom(const v8::FunctionCallbackInfo
sqlArgsLength = length->Uint32Value();
for (unsigned int i = 0; i < sqlArgsLength; ++i) {
- v8::Handle<v8::Integer> key = v8::Integer::New(i, args.GetIsolate());
+ v8::Handle<v8::Integer> key = v8::Integer::New(i, info.GetIsolate());
V8TRYCATCH_VOID(v8::Local<v8::Value>, value, sqlArgsObject->Get(key));
if (value.IsEmpty() || value->IsNull())
@@ -86,14 +86,14 @@ void V8SQLTransactionSync::executeSqlMethodCustom(const v8::FunctionCallbackInfo
}
}
- SQLTransactionSync* transaction = V8SQLTransactionSync::toNative(args.Holder());
+ SQLTransactionSync* transaction = V8SQLTransactionSync::toNative(info.Holder());
- ExceptionState es(args.GetIsolate());
- v8::Handle<v8::Value> result = toV8(transaction->executeSQL(statement, sqlValues, es), args.Holder(), args.GetIsolate());
+ ExceptionState es(info.GetIsolate());
+ v8::Handle<v8::Value> result = toV8(transaction->executeSQL(statement, sqlValues, es), info.Holder(), info.GetIsolate());
if (es.throwIfNeeded())
return;
- v8SetReturnValue(args, result);
+ v8SetReturnValue(info, result);
}
} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/custom/V8SQLTransactionCustom.cpp ('k') | Source/bindings/v8/custom/V8SVGLengthCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698