| 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();
|
| }
|
|
|