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

Unified Diff: Source/bindings/v8/custom/V8WorkerCustom.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/V8WorkerCustom.cpp
diff --git a/Source/bindings/v8/custom/V8WorkerCustom.cpp b/Source/bindings/v8/custom/V8WorkerCustom.cpp
index 890ab9b29ce045190486c0f9327211cc728b0141..680e91c17f157aeb50079926a54cb4e1cd6191b9 100644
--- a/Source/bindings/v8/custom/V8WorkerCustom.cpp
+++ b/Source/bindings/v8/custom/V8WorkerCustom.cpp
@@ -42,30 +42,25 @@
namespace WebCore {
-void V8Worker::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8Worker::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- Worker* worker = V8Worker::toNative(args.Holder());
+ Worker* worker = V8Worker::toNative(info.Holder());
MessagePortArray ports;
ArrayBufferArray arrayBuffers;
- if (args.Length() > 1) {
+ if (info.Length() > 1) {
const int transferablesArgIndex = 1;
bool notASequence = false;
- if (!extractTransferables(args[transferablesArgIndex], ports, arrayBuffers, notASequence, args.GetIsolate())) {
+ if (!extractTransferables(info[transferablesArgIndex], ports, arrayBuffers, notASequence, info.GetIsolate())) {
if (notASequence)
- throwTypeError(ExceptionMessages::failedToExecute("postMessage", "Worker", ExceptionMessages::notAnArrayTypeArgumentOrValue(transferablesArgIndex + 1)), args.GetIsolate());
+ throwTypeError(ExceptionMessages::failedToExecute("postMessage", "Worker", ExceptionMessages::notAnArrayTypeArgumentOrValue(transferablesArgIndex + 1)), info.GetIsolate());
return;
}
}
bool didThrow = false;
- RefPtr<SerializedScriptValue> message =
- SerializedScriptValue::create(args[0],
- &ports,
- &arrayBuffers,
- didThrow,
- args.GetIsolate());
+ RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &ports, &arrayBuffers, didThrow, info.GetIsolate());
if (didThrow)
return;
- ExceptionState es(args.GetIsolate());
+ ExceptionState es(info.GetIsolate());
worker->postMessage(message.release(), &ports, es);
es.throwIfNeeded();
}
« no previous file with comments | « Source/bindings/v8/custom/V8WorkerCryptoCustom.cpp ('k') | Source/bindings/v8/custom/V8WorkerGlobalScopeCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698