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

Unified Diff: Source/bindings/v8/custom/V8MessagePortCustom.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/V8MessagePortCustom.cpp
diff --git a/Source/bindings/v8/custom/V8MessagePortCustom.cpp b/Source/bindings/v8/custom/V8MessagePortCustom.cpp
index 80473b6876092712906937970c41374d3d5196bb..4c34183f278ae9b866a8a82602975a81a0cf107a 100644
--- a/Source/bindings/v8/custom/V8MessagePortCustom.cpp
+++ b/Source/bindings/v8/custom/V8MessagePortCustom.cpp
@@ -41,30 +41,25 @@
namespace WebCore {
-void V8MessagePort::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8MessagePort::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- MessagePort* messagePort = V8MessagePort::toNative(args.Holder());
+ MessagePort* messagePort = V8MessagePort::toNative(info.Holder());
MessagePortArray portArray;
ArrayBufferArray arrayBufferArray;
- if (args.Length() > 1) {
+ if (info.Length() > 1) {
bool notASequence = false;
const int transferablesArgIndex = 1;
- if (!extractTransferables(args[transferablesArgIndex], portArray, arrayBufferArray, notASequence, args.GetIsolate())) {
+ if (!extractTransferables(info[transferablesArgIndex], portArray, arrayBufferArray, notASequence, info.GetIsolate())) {
if (notASequence)
- throwTypeError(ExceptionMessages::failedToExecute("postMessage", "MessagePort", ExceptionMessages::notAnArrayTypeArgumentOrValue(transferablesArgIndex + 1)), args.GetIsolate());
+ throwTypeError(ExceptionMessages::failedToExecute("postMessage", "MessagePort", ExceptionMessages::notAnArrayTypeArgumentOrValue(transferablesArgIndex + 1)), info.GetIsolate());
return;
}
}
bool didThrow = false;
- RefPtr<SerializedScriptValue> message =
- SerializedScriptValue::create(args[0],
- &portArray,
- &arrayBufferArray,
- didThrow,
- args.GetIsolate());
+ RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &portArray, &arrayBufferArray, didThrow, info.GetIsolate());
if (didThrow)
return;
- ExceptionState es(args.GetIsolate());
+ ExceptionState es(info.GetIsolate());
messagePort->postMessage(message.release(), &portArray, es);
es.throwIfNeeded();
}
« no previous file with comments | « Source/bindings/v8/custom/V8MessageEventCustom.cpp ('k') | Source/bindings/v8/custom/V8MutationObserverCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698